Part Number Hot Search : 
3002L IRFZ40 STA328 KSE5741 ST25E32 M5222 1000G SCB25M
Product Description
Full Text Search
 

To Download MC9S12UF32 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 MC9S12UF32 System on a Chip Guide V01.05
Original Release Date: 17 JAN 2002 Revised: 03 Dec 2004
TSPG - 8/16 Bit MCU Design, HKG Freescale Semiconductor, Inc.
This product has been designed for use in "Commercial" applications. Please see a description below. Freescale's semiconductor products are classified into the following three tiers "Commercial", "Industrial", and "Automotive". A product should only be used in applications appropriate to its tier. The recommended applications for products in the different tiers are indicated below. For questions, please contact a Freescale sales representative. Commercial: Typically 5 year applications - personal computers, PDA's, portable telecom products, consumer electronics, etc. Industrial: Typically 10 year applications - installed telecom equipment, work stations, servers, etc. These products can also be used for Commercial applications. Automotive: Qualified per automotive industry standard methods.
Revision History
Release Number
00.01 00.02 00.03
Date
17JAN02 19FEB02 26APR02
Author
Y.H. Cheng Y.H. Cheng Y.H. Cheng Initial Version
Summary of Changes
Modified SMRAM mapping to allow 1k byte 16-bit block mappable to Vector Space. Update spec with review feedback. Modified Device pinout to separate D+ D- for high speed and low speed operation. Remap Timer pins to Port R. Update BG references. Modified Device pinout per IP requirement Add SCI Update Interrupt information. Change pin location for REF3V and VREGEN minor update on module name references remove references to pseudo stop and clock monitor - Updated info for SMRAM3P5K2E in device memory map - Updated EXTAL and XTAL supply rail information. - Relocate SCI module base address from $70 to $C8 - Relocate ATA5HC module base address from $240 to $1C0 - Relocate PIM module base address from $80 to $240 - Relocate Interrupt Vectors - Updated Phy evaluation pinout. - Updated CFA00, CFA01 and CFA02 pin name to CFA0, CFA1 and CFA2 respectively. - Removed ESD and Latchup section in Electrical. - Update Block Guide References - Miscellaneous Typo mistakes. - Update typo in interrupt vector table for Vector $C2 - Update typo in pin order of IOC[7:4] in signal properties table - Specify run and wait IDDs in Electrical Section - Specify stop IDD at room temperature in Electrical Section - Change specification to include 64 pin option - ROMCTL pin assigned to PJ2
00.04
16SEP02
Y.H. Cheng
00.05
25SEP02
Y.H. Cheng
00.06
03JUN03
Y.H. Cheng
00.07
11JUN03
Y.H. Cheng
00.08
13JUL03
Y.H. Cheng
Freescale Semiconductor reserves the right to make changes without further notice to any products herein to improve reliability, function or design. Freescale Semiconductor does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. Freescale Semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part. FreescaleTM and the Freescale logo are registered trademarks of Freescale Semiconductor, Inc. Freescale Semiconductor, Inc. is an Equal Opportunity/Affirmative Action Employer.
(c) Freescale Semiconductor, Inc. 2004
Freescale Semiconductor
2
System on a Chip Guide -- 9S12UF32DGV1/D V01.05 Release Number
Date
Author
Summary of Changes
- Removed all references to XCLKS, since function is removed. - typo - replaced PRU with RPU. - typo - replaced ATAHC with ATA5HC - Removed references to clock monitor, since function is not available. - Update JA for 100-pin and 64-pin packages. - Add footnotes on IRQ pin removal in 64-pin package - Update Flash memory map out of reset. - Add information on INITRM, INITRG, INITEE setting for example application memory map - Update clock distribution diagram to make it more intelligible - Change table 2-3, 2-5 description using general purpose port references instead of Functional module references. - Stop IDD spec for -40C and 85C are removed - Add other conditions for RUN Idd and Wait Idd. - Minor typo corrections. - Corrected `Background Debug Module' to `HCS12 Breakpoint' at address $0028-$002F in table 1-1. - Added detailed register map. - Corrected the MSHC enable control in table 5-1. - Added part ID $6311 for mask 1L47S. - Removed all references and description on USB Physical Endpoint 6 - Updated IDD, 3V and 5V I/O electricals and package thermal resistance information - Include Commercial tier note - Update and add note to detailed register map. - Added PIM reference. - Added package information as appendix B. - Improved fig 1-1. - Fixed consistency of 3.0v and 3.3v for VDD3X. - Updated power dissipation formula. - Added schematic and PCB layout recommendations. - Added NVM, VREGU, CRGU electricals to appendix A.
01.00
21AUG03
Y.H. Cheng
01.01
28NOV03
Wai-On Law
01.02
23MAR04
Y.H. Cheng
01.03 01.04
20APR04 10MAY04
Wai-On Law Wai-On Law
01.05
03DEC04
Wai-On Law
Freescale Semiconductor
3
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
4
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Table of Contents
Section 1 Introduction
1.1 1.2 1.3 1.4 1.5 1.5.1 1.6 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 Device Memory Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 Detailed Register Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Part ID Assignments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
Section 2 Signal Description
2.1 Device Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 2.2 Signal Properties Summary for 100-pin Package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 2.3 Signal Properties Summary for 64-pin Package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 2.4 Detailed Signal Descriptions for 100-pin package . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 2.4.1 EXTAL, XTAL -- Oscillator Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 2.4.2 RESET -- External Reset Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 2.4.3 TEST -- Test Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 2.4.4 VREGEN -- Voltage Regulator Enable Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 2.4.5 BKGD / TAGHI / MODC -- Background Debug, Tag High & Mode Pin . . . . . . . . . .57 2.4.6 RPU -- USB D+ pull up resistor termination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 2.4.7 RREF -- External bias resistor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 2.4.8 DPF - USB Full Speed D+ data line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 2.4.9 DPH - USB High Speed D+ data line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 2.4.10 DMF - USB Full Speed D- data line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 2.4.11 DMH - USB High Speed D- data line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 2.4.12 PWROFF5V - power off 5V supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 2.4.13 PWROFF3V - power off 3V supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 2.4.14 REF3V - 3.3V reference for external regulator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 2.4.15 PA[7:0] / ADDR[15:8] / DATA[15:8] / CFD[15:8] / ATAD[15:8] -- Port A I/O Pins . . .58 2.4.16 PB[7:0] / ADDR[7:0] / DATA[7:0] / CFD[7:0] / ATAD[7:0] -- Port B I/O Pins . . . . . . .59 2.4.17 PE7 / NOACC -- Port E I/O Pin 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 2.4.18 PE6 / MODB / IPIPE1 -- Port E I/O Pin 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 2.4.19 PE5 / MODA / IPIPE0 -- Port E I/O Pin 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
Freescale Semiconductor 5
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.4.20 2.4.21 2.4.22 2.4.23 2.4.24 2.4.25 2.4.26 2.4.27 2.4.28 2.4.29 2.4.30 2.4.31 2.4.32 2.4.33 2.4.34 2.4.35 2.4.36 2.4.37 2.4.38 2.4.39 2.4.40 2.4.41 2.4.42 2.4.43 2.4.44 2.4.45 2.4.46 2.4.47 2.4.48 2.4.49 2.4.50 2.4.51 2.4.52 2.4.53 2.4.54 2.4.55
PE4 / ECLK-- Port E I/O Pin 4 / E-Clock Output . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 PE3 / LSTRB / TAGLO -- Port E I/O Pin 3 / Low-Byte Strobe (LSTRB) . . . . . . . . . .60 PE2 / R/W -- Port E I/O Pin 2 / Read/Write. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60 PE1 / IRQ -- Port E input Pin 1 / Maskable Interrupt Pin . . . . . . . . . . . . . . . . . . . . .60 PE0 / XIRQ -- Port E input Pin 0 / Non Maskable Interrupt Pin . . . . . . . . . . . . . . . .60 PJ2 / MSSCLK/ROMCTL - Port J I/O Pin 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60 PJ1 / MSSDIO - Port J I/O Pin 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 PJ0 / MSBS - Port J I/O Pin 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 PM[5:2] / SDDATA[3:0] - Port M I/O Pin [5:2] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 PM1 / SDCLK -- Port M I/O Pin 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 PM0 / SDCMD -- Port M I/O Pin 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 PP7 / SRE / ACFD15 / AATAD15-- Port P I/O Pin 7. . . . . . . . . . . . . . . . . . . . . . . . .61 PP6 / SWE / ACFD14 / AATAD14-- Port P I/O Pin 6 . . . . . . . . . . . . . . . . . . . . . . . .62 PP5 / SALE / ACFD13 / AATAD13-- Port P I/O Pin 5. . . . . . . . . . . . . . . . . . . . . . . .62 PP4 / SCLE / ACFD12 / AATAD12-- Port P I/O Pin 4. . . . . . . . . . . . . . . . . . . . . . . .62 PP3 / SWP / ACFD11 / AATAD11-- Port P I/O Pin 3 . . . . . . . . . . . . . . . . . . . . . . . .62 PP2 / SCE / ACFD10 / AATAD10-- Port P I/O Pin 2. . . . . . . . . . . . . . . . . . . . . . . . .62 PP1 / SCD / ACFD9 / AATAD9-- Port P I/O Pin 1 . . . . . . . . . . . . . . . . . . . . . . . . . .63 PP0 / SBSY / ACFD8 / AATAD8-- Port P I/O Pin 0 . . . . . . . . . . . . . . . . . . . . . . . . .63 PQ[7:0] / SDAT[7:0] / ACFD[7:0] / AATAD[7:0]-- Port Q I/O Pins [7:0]. . . . . . . . . . .63 PR[1:0] / CFA[4:3] -- Port R I/O Pins [1:0] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63 PR[2] / CFA[5] / RXD -- Port R I/O Pins [2]. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63 PR[3] / CFA[6] / TXD -- Port R I/O Pins [3] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 PR[7:4] / CFA[10:7] / IOC[7:4] -- Port R I/O Pins [7:4] . . . . . . . . . . . . . . . . . . . . . . .64 PS7 / CFRDY(CFIREQ) / ATAINTQ -- Port S I/O Pin 7 . . . . . . . . . . . . . . . . . . . . . .64 PS6 / CFWE / ATADMARQ -- Port S I/O Pin 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 PS5 / CFIOWR / ATAIOWR -- Port S I/O Pin 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 PS4 / CFIORD / ATAIORD -- Port S I/O Pin 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 PS3 / CFCE2 / ATACS1 -- Port S I/O Pin 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 PS2 / CFIOIS16 -- Port S I/O Pin 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 PS1 / CFOE -- Port S I/O Pin 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 PS0 / CFCE1 / ATACS0 -- Port S I/O Pin 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 PT[3:0] / IOC[3:0]-- Port T I/O Pins [3:0] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 PU[5:3] / CFA[2:0] / ATADA[2:0] -- Port U I/O Pins [5:3] . . . . . . . . . . . . . . . . . . . . .66 PU2 / CFREG -- Port U I/O Pin 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 PU1 / CFINPACK / ATADMACK -- Port U I/O Pin 1 . . . . . . . . . . . . . . . . . . . . . . . . .66
6
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.4.56 PU0 / CFWAIT / ATAIORDY -- Port U I/O Pin 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 2.5 Detailed Signal Descriptions for 64-pin package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 2.5.1 EXTAL, XTAL -- Oscillator Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 2.5.2 RESET -- External Reset Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 2.5.3 TEST -- Test Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 2.5.4 BKGD / TAGHI / MODC -- Background Debug, Tag High & Mode Pin . . . . . . . . . .67 2.5.5 RPU -- USB D+ pull up resistor termination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 2.5.6 RREF -- External bias resistor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 2.5.7 DPF - USB Full Speed D+ data line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 2.5.8 DPH - USB High Speed D+ data line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 2.5.9 DMF - USB Full Speed D- data line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 2.5.10 DMH - USB High Speed D- data line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 2.5.11 REF3V - 3.3V reference for external regulator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 2.5.12 PA[5:0] / ADDR[13:8] / DATA[13:8] / CFD[13:8] / ATAD[13:8] -- Port A I/O Pins . . .68 2.5.13 PA[6] / ADDR[14] / DATA[14] / CFD[14] / ATAD[14] / MSBS-- Port A I/O Pins . . . .68 2.5.14 PA[7] / ADDR[15] / DATA[15] / CFD[15] / ATAD[15] -- Port A I/O Pins . . . . . . . . . .69 2.5.15 PB[7:0] / ADDR[7:0] / DATA[7:0]/ CFD[7:0] / ATAD[7:0] / IOC[7:0] -- Port B I/O Pins . 69 2.5.16 PE7 / NOACC / CAF10-- Port E I/O Pin 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 2.5.17 PE6 / MODB / IPIPE1 / CFA9 -- Port E I/O Pin 6 . . . . . . . . . . . . . . . . . . . . . . . . . . .69 2.5.18 PE5 / MODA / IPIPE0 / CFA8 -- Port E I/O Pin 5 . . . . . . . . . . . . . . . . . . . . . . . . . . .69 2.5.19 PE4 / ECLK-- Port E I/O Pin 4 / E-Clock Output . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 2.5.20 PE3 / LSTRB / TAGLO / CFA3 -- Port E I/O Pin 3 / Low-Byte Strobe (LSTRB) . . . .70 2.5.21 PE2 / R/W -- Port E I/O Pin 2 / Read/Write. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70 2.5.22 PE0 / XIRQ -- Port E input Pin 0 / Non Maskable Interrupt Pin . . . . . . . . . . . . . . . .70 2.5.23 PJ2 / ATACS1 / SWP / CFCE2 / ROMCTL - Port J I/O Pin 2 . . . . . . . . . . . . . . . . . .70 2.5.24 PJ1 / ATACS0 / SCLE / CFCE1 - Port J I/O Pin 1 . . . . . . . . . . . . . . . . . . . . . . . . . . .71 2.5.25 PJ0 / ATAIOWR / SALE / CFIOWR - Port J I/O Pin 0 . . . . . . . . . . . . . . . . . . . . . . . .71 2.5.26 PM4 / IOC3 / SDDATA2 / SBSY / CFIOIS16 -- Port M I/O Pin 4 . . . . . . . . . . . . . . .71 2.5.27 PM3 / IOC2 / SDDATA1 / SCE / CFINPACK -- Port M I/O Pin 3 . . . . . . . . . . . . . . .71 2.5.28 PQ7 / SDAT7 / CFA7 / IOC7 -- Port Q I/O Pins 7 . . . . . . . . . . . . . . . . . . . . . . . . . . .71 2.5.29 PQ6 / SDAT6 / CFA6 / SDCLK / IOC6 -- Port Q I/O Pins 6 . . . . . . . . . . . . . . . . . . .72 2.5.30 PQ5 / SDAT5 / CFA5 / SDCMD / IOC5 -- Port Q I/O Pins 5. . . . . . . . . . . . . . . . . . .72 2.5.31 PQ4 / SDAT4 / CFA4 / ATADMACK / IOC4 -- Port Q I/O Pins 4 . . . . . . . . . . . . . . .72 2.5.32 PQ3 / SDAT3 / CFIORD / ATAIORD -- Port Q I/O Pins 3. . . . . . . . . . . . . . . . . . . . .72 2.5.33 PQ[2:0] / SDAT[2:0] / CFA[2:0] / ATADA[2:0]-- Port Q I/O Pins [2:0] . . . . . . . . . . . .72
Freescale Semiconductor
7
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.5.34 PS7 / CFRDY(CFIREQ) / ATAINTQ / MSSDIO -- Port S I/O Pin 7. . . . . . . . . . . . . .73 2.5.35 PS6 / CFWE / ATADMARQ / MSCLK -- Port S I/O Pin 6 . . . . . . . . . . . . . . . . . . . . .73 2.5.36 PS5 / TXD -- Port S I/O Pin 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 2.5.37 PS4 / RXD -- Port S I/O Pin 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 2.5.38 PT1 / IOC1 / SDDATA3 / SWE / CFOE -- Port T I/O Pin 1 . . . . . . . . . . . . . . . . . . . .73 2.5.39 PT0 / IOC0 / SDDATA0 / SRE / CFREG -- Port T I/O Pin 0 . . . . . . . . . . . . . . . . . . .73 2.5.40 PU0 / CFWAIT / ATAIORDY / SCD -- Port U I/O Pin 0. . . . . . . . . . . . . . . . . . . . . . .74 2.6 Power Supply Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74 2.6.1 VDDR, VSSR - Power & Ground Pins for I/O Drivers & for Internal Voltage Regulator. 74 2.6.2 VDD - Core Power Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 2.6.3 VDDX, VSSX - Power & Ground Pins for I/O Drivers . . . . . . . . . . . . . . . . . . . . . . . .75 2.6.4 VDD3X, VSS3X - Power & Ground Pins for I/O Drivers . . . . . . . . . . . . . . . . . . . . . .75 2.6.5 VDDA, VSSA, VSSA1 - USB PHY Power Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
Section 3 System Clock Description Section 4 Modes of Operation
4.1 4.2 4.2.1 4.2.2 4.3 4.4 4.4.1 4.4.2 4.4.3 4.5 4.5.1 4.5.2 4.5.3 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 Normal Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 Special Operating Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 Internal Visibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 Securing the Microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 Operation of the Secured Microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 Unsecuring the Microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 Wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 Run. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84
Section 5 Resets and Interrupts
5.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 5.2 Vectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 5.2.1 Vector Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 5.3 Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
8
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
5.3.1 5.3.2
Reset Summary Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 Effects of Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
Section 6 HCS12 Core Block Description
6.1 6.2 6.3 6.4 6.5 6.6 CPU12 Block Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88 HCS12 Background Debug Module (BDM) Block Description . . . . . . . . . . . . . . . . . . . .88 HCS12 Breakpoint (BKP) Block Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88 HCS12 Interrupt (INT) Block Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88 HCS12 Multiplexed External Bus Interface (MEBI) Block Description . . . . . . . . . . . . . .88 HCS12 Module Mapping Control (MMC) Block Description . . . . . . . . . . . . . . . . . . . . . .88
Section 7 ATA5 Host Controller (ATA5HC) Block Description
7.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89
Section 8 Compact Flash Host Controller (CFHC) Block Description
8.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89
Section 9 Clock Reset Generator (CRG_U) Block Description
9.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89
Section 10 Flash EEPROM 32K (FTS32K) Block Description
10.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90
Section 11 Integrated Queue Controller (IQUE) Block Description
11.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90
Section 12 Memorystick Host Controller (MSHC) Block Description
12.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91
Section 13 Oscillator (OSC) Block Description
13.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91
Section 14 Port Integration Module (PIM) Block Description
14.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92
Section 15 Serial Communication Interface (SCI) Block Description
15.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92
Freescale Semiconductor
9
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Section 16 Secured Digital Host Controller (SDHC) Block Description
16.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92
Section 17 Smartmedia Host Controller (SMHC) Block Description
17.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93
Section 18 Smartmedia RAM (SMRAM) Block Description
18.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93
Section 19 Timer (TIM) Block Description
19.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93
Section 20 USB2.0 Controller (USB20D6E2F) Block Description
20.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93
Section 21 Voltage Regulator (VREG_U) Block Description
21.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94
Section 22 Schematic and PCB Layout Design Recommendations
22.1 Schematic Design with the MC9S12UF32 and a USB interface . . . . . . . . . . . . . . . . . .94 22.1.1 Power Supply Notes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 22.1.2 Clocking Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 22.2 PCB Design Recommendation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96
Appendix A Electrical Characteristics
A.1 General. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 A.1.1 Parameter Classification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 A.1.2 Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 A.1.3 Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 A.1.4 Current Injection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 A.1.5 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 A.1.6 ESD Protection and Latch-up Immunity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 A.1.7 Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 A.1.8 Power Dissipation and Thermal Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . .101 A.1.9 I/O Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103 A.1.10 Supply Currents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 A.2 NVM, Flash. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
10
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.2.1 NVM timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109 A.2.2 NVM Reliability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 A.3 Voltage Regulator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113 A.4 Reset, Oscillator and PHY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 A.4.1 Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 A.4.2 Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 A.4.3 USB PHY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 A.5 External Bus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119 A.5.1 General Muxed Bus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119
Appendix B Package Information
B.1 B.2 B.3 General. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123 100-pin LQFP Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124 64-pin LQFP Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125
Freescale Semiconductor
11
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
12
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
List of Figures
Figure 0-1 Figure 1-1 Figure 1-2 Figure 2-1 Figure 2-2 Figure 2-3 Figure 2-4 Figure 3-1 Figure 13-1 Figure 22-1 Figure A-1 Figure B-1 Figure B-2 Order Part Number Coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 MC9S12UF32 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 MC9S12UF32 Memory Map (Application Example) . . . . . . . . . . . . . . . . . . . . . .25 Pin Assignments in 100-pin LQFP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 Pin Assignments in 64-pin LQFP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 Supply rails for various I/O pins of 100-pin package . . . . . . . . . . . . . . . . . . . . . .76 Supply rails for various I/O pins of 64-pin package . . . . . . . . . . . . . . . . . . . . . . .76 Clock Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 Pierce Oscillator Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 Sample schematic with 64-pin LQFP MC9S12UF32. . . . . . . . . . . . . . . . . . . . . .95 General External Bus Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 100-pin LQFP mechanical dimensions (case no. 983) . . . . . . . . . . . . . . . . . . 124 64-pin LQFP mechanical dimensions (case no. 840F) . . . . . . . . . . . . . . . . . . 125
Freescale Semiconductor
13
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
14
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
List of Tables
Table 0-1 Table 0-2 Table 1-1 Table 1-2 Table 1-3 Table 2-1 Table 2-2 Table 2-3 Table 2-4 Table 2-5 Table 4-1 Table 5-1 Table 5-2 Table 11-1 Table 22-1 Table A-1 Table A-2 Table A-3 Table A-4 Table A-5 Table A-6 Table A-7 Table A-8 Table A-9 Table A-10 Table A-11 Table A-12 Table A-13 Table A-15 Document References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 Part Number Coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 Device Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 Assigned Part ID Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 Memory size registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 Configuration selection in 100-pin option. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47 Configuration selection in 64-pin option. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 100-pin Signal Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 64-pin Signal Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 MC9S12UF32 Power and Ground Connection Summary . . . . . . . . . . . . . . . . . . .74 Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 Interrupt Vector Locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 Reset Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 Queue Channel n Request Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 Recommended decoupling capacitor choice . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 ESD and Latch-up Test Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 ESD and Latch-Up Protection Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . .100 Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 Thermal Package Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102 5V I/O Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104 3.3V I/O Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106 Supply Current Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 NVM Timing Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 NVM Reliability Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 Voltage Regulator Recommended Load Resistances/Capacitances . . . . . . . . .113 Startup Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 Oscillator Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 Expanded Bus Timing Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .120
Freescale Semiconductor
15
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
16
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Preface
The SoC Guide provides information about the MC9S12UF32 device made up of standard HCS12 blocks and the HCS12 processor core. This document is part of the customer documentation. A complete set of device manuals also includes the HCS12 Core User Guide and all the individual Block Guides of the implemented modules. In an effort to reduce redundancy all module specific information is located only in the respective Block Guide. If applicable, special implementation details of the module are given in the block description sections of this document. See Table 0-1 for names and versions of the referenced documents throughout the Device Guide. Table 0-1 Document References
User Guide
HCS12 CPU Reference Manual HCS12 Breakpoint (BKP) Block Guide HCS12 Background Debug (BDM) Block Guide HCS12 Module Mapping Control (MMC) Block Guide HCS12 Multiplexed External Bus Interface (MEBI) Block Guide HCS12 Interrupt (INT) Block Guide Clock and Reset Generator (CRG_U) Block Guide Timer: 16 bit, 8 channel (TIM_16B8C) Block Guide Serial Communications Interface (SCI) Block Guide 32Kbyte Flash EEPROM (FTS32K) Block Guide Voltage Regulator (VREG_U) Block Guide Oscillator (OSC) Block Guide Port Integration Module (PIM_9UF32) Block Guide USB 2.0 Device Controller (USB20D6E2F) Block Guide Integrated Queue Controller (IQUE) Block Guide ATA5 Host Controller (ATA5HC) Block Guide Smart Media Host Controller (SMHC) Block Guide Secure Digital Host Controller (SDHC) Block Guide Memory Stick Host Controller (MSHC) Block Guide Compact Flash Host Controller (CFHC) Block Guide SM RAM (SMRAM3P5K2E) Block Guide
Version
V02 V01 V04 V04 V03 V01 V01 V01 V04 V01 V01 V02 V02 V01 V01 V01 V01 V01 V01 V01 V01
Document Order Number
S12CPUV2/D S12BKPV1/D S12BDMV4/D S12MMCV4/D S12MEBIV3/D S12INTV1/D S12CRGUV1/D S12TIM16B8CV1/D S12SCIV4/D S12FTS32KV1/D S12VREGUV1/D S12OSCV2/D S12UF32PIMV2/D S12USB20D6E2FV1/D S12IQUEV1/D S12ATA5HCV1/D S12SMHCV1/D S12SDHCV1/D S12MSHCV1/D S12CFHCV1/D S12SMRAM3P5K2EV1/D
Since the device interfaces with several external industrial standards, please refer to the following for details about those interface standards: * * "Information Technology - AT Attachment with Packet Interface - 5 (ATA/ATAPI5)," T13/1321D rev 3, 29 February, 2000, ANSI. "CF+ and CompactFlash Specification," rev. 2.0 5/2003, CompactFlash Association.
Freescale Semiconductor
17
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
* * * * *
"Memory Stick Information for Developers," ver. 1.3, 2000, Sony Corp. "The MultiMediaCard system specification," ver. 3.0, 1/2001, MMCA Technical Committee. "SD Memory Card Specifications," ver. 1.0, March 2000, SD Group. "Smart Media Electrical Specifications," ver. 1.0, May 19, 1999, SSFDC Forum Technical Committee. "Universal Serial Bus Specification," rev. 2.0, 27 April 2000, Compaq, Hewlett-Packard, Intel, Lucent, Microsoft, NEC, Philips.
Part Number
Figure 0-1 provides an ordering number example.
MC9S12 UF32 FU
Package Option Device Title Controller Family Figure 0-1 Order Part Number Coding Table 0-2 lists the part number coding based on the package. Table 0-2 Part Number Coding
Part Number
MC9S12UF32PB MC9S12UF32PU
Package Options PB = 64LQFP PU = 100LQFP
Package
64LQFP 100LQFP
Description
MC9S12UF32 MC9S12UF32
18
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Section 1 Introduction
1.1 Overview
The MC9S12UF32 microcontroller unit (MCU) is USB2.0 device for memory card reader and ATA/ATAPI interface applications. This device is composed of standard on-chip modules including a 16-bit central processing unit (HCS12 CPU), 32k bytes of Flash EEPROM, 3.5k bytes of RAM, USB2.0 interface, Integrated Queue Controller (IQUE) block with 1.5k bytes RAM buffer for USB Bulk data transport, ATA5 interface, Compact Flash interface, SD/MMC interface, SmartMedia interface, Memorystick interface, a 16-bit 8-channel timer, Serial Communication Interface, 73 discrete digital I/O channels and 2 input only channels1. The MC9S12UF32 has full 16-bit internal data paths throughout.
1.2 Features
* HCS12 Core - 16-bit HCS12 CPU i. Upward compatible with M68HC11 instruction set ii. Interrupt stacking and programmer's model identical to M68HC11 iii. Instruction queue iv. Enhanced indexed addressing - - - - - * - - - * - Multiplexed External Bus Interface (MEBI) Memory Mapping Control (MMC) Interrupt Control (INT) Single-wire Background Debug Mode (BDM) On-chip hardware Breakpoints (BKP) Clock Throttle to prescale the oscillator clock or 60Mhz clock from USB20D6E2F. COP watchdog Real Time Interrupt 32K Flash EEPROM - Internal program/erase voltage generation - Security and Block Protect bits - 3.5K byte RAM
Clock and Reset Generator (CRG_U)
Memory
NOTES: 1. Not all functions are available simultaneously.
Freescale Semiconductor
19
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
- Used as a contiguous 3.5k byte SRAM with misaligned access support - Configurable to 1084 byte SRAM and 2000 x 10 bit SRAM for Smartmedia logical to physical address translation and parity generation/checking support. - * 1.5K byte Queue RAM - SRAM used as USB endpoint buffer, access is arbitrated by IQUE module 8-channel Timer (TIM) - - - - * * - - - Eight input capture/output compare channels Clock prescaling 16-bit counter 16-bit pulse accumulator Asynchronous serial communication interface (SCI) Input voltage range from 4.25V to 5.5V Separate Regulation circuits - 2.5V Regulator for Core Logic and memory - 3.3V Regulator for USB2.0 physical layer interface - 3.3V Regulator with off-chip NMOS driver for I/O and memory cards - * - - - - * Power on Reset detection Provide block data transfer without CPU intervention Four independent queue channels for data transfer between Queue RAM and peripherals Unified Queue RAM Memory which can be allocated to different usb endpoints and storage interface module Programming model allows implementation of double buffering for maximum burst data throughput of 60M bytes per second between USB20D6E2F and one of the Storage Interfaces Intergrated USB2.0 Physical Layer Transceiver (USB20PHY) for High speed and Full Speed operations USB 2.0 Serial Interface Engine (USB20SIE) for High Speed and Full Speed operations compatible - Endpoint 0 for Control IN and OUT operation - Endpoint 2 and 3 are configurable for Bulk, ISO or Interrupt IN/OUT operation - Endpoint buffer with programmable size residing in Queue RAM for endpoints 4 and 5 Integrated Queue Controller (IQUE)
Serial Interface Internal Regulator (VREG_U)
Universal Serial Bus 2.0 (USB20D6E2F) - -
20
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
- Endpoint 0 IN, endpoint 0 OUT, endpoint 2 and endpoint 3 each has an independent 64 bytes fixed endpoint buffer. * ATA5 Host Controller Interface (ATA5HC) - - - - * Support PIO mode 0 to 4 Support Multi-word DMA mode 0 to 2 Support UDMA mode 0 to 4 (Up to 60M Bytes/sec at UDMA mode 4) Sector data can be transferred to and from USB endpoint buffer without CPU intervention using IQUE module Support Compact Flash memory and I/O mode access operations per CFA specification 1.4 Sector data can be transferred to and from USB endpoint buffer without CPU intervention using IQUE module Compatible with the MMC System Specification Version 3.0 Compatible with the SD Memory Card Specification 1.0 Sector data can be transferred to and from USB endpoint buffer without CPU intervention using IQUE module Compatible with SmartMedia Specification 1.0 Support SmartMedia with memory size of 4M Bytes to 128M Bytes Sector data can be transferred to and from USB endpoint buffer without CPU intervention using IQUE module Compatible with Memory Stick Standard 1.3 Sector data can be transferred to and from USB endpoint buffer without CPU intervention using IQUE module XIRQ IRQ2 Up to 6 I/O pins with 5V only drive capability and 2 input only 5V pins. Up to 67 I/O pins with 3.3V/5V input and drive capability.
Compact Flash Host Controller Interface (CFHC) - -
*
Secure Digital and Multimedia Card Host Controller Interface (SDHC) - - -
*
Smartmedia Host Controller Interface (SMHC) - - -
*
Memorystick Host Controller Interface (MSHC)1 - -
*
Two Asynchronous External Interrupt pins - -
*
100-Pin LQFP package - -
NOTES: 1. The Document for the Memory Stick Host Controller in the 912UF32 will be available to users who have obtained a formal license of Memory Stick from Sony. Memory Stick is a Sony technology. 2. IRQ is not available in 64 pin device.
Freescale Semiconductor
21
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
*
64-Pin LQFP package - - - User selectable subset of modules available. Up to 6 I/O pins with 5V only drive capability and 1 input only 5V pin. Up to 35 I/O pins with 3.3V/5V input and drive capability. Maximum 60MHz equivalent to 30MHz CPU Bus Speed for single chip modes. 60MHz operation for IQUE module and storage interface modules attached to IQUE.
*
Operating frequency - -
1.3 Modes of Operation
* Normal modes - - - - - * - - - * - - * Normal Single-Chip Mode Normal Expanded Wide Mode Normal Expanded Narrow Mode Emulation Expanded Wide Mode Emulation Expanded Narrow Mode Special Single-Chip Mode with active Background Debug Mode Special Test Mode (Freescale use only) Special Peripheral Mode (Freescale use only) Stop Mode Wait Mode
Special Operating Modes
Each of the above modes of operation can be configured for two Low power sub-modes
Secure operation, preventing the unauthorized read and write of the flash memory contents.
22
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
1.4 Block Diagram
32K Byte Flash EEPROM 3.5K Byte SMRAM
VDDR VSSR VREGEN VDD VDDA REF3V BKGD
I/O Driver 3.3/5V
VDDX VSSX
I/O Driver 3.3/5V
VDD3X VSS3X
PHY Analog 3.3V
VDDA VSSA
Voltage Regulator 5V & I/O DDRT Voltage Regulator PTT
VDDR VSSR PT0 PT1 PT2 PT3 PP0 PP1 PP2 PP3 PP4 PP5 PP6 PP7 PQ0 PQ1 PQ2 PQ3 PQ4 PQ5 PQ6 PQ7 PJ0 PJ1 PJ2 PM0 PM1 PM2 PM3 PM4 PM5
Single-wire Background Debug Module
Clock and Reset Generation Module
Internal Logic 2.5v CPU12
VDD
RESET PE0 PE1 PE2 PE3 PE4 PE5 PE6 PE7 TEST XIRQ IRQ R/W LSTRB ECLK MODA MODB NOACC
Periodic Interrupt COP Watchdog Breakpoints
Timer System Integration Module (SIM) SCI IP-bus (30 MHz)*
DDRE
PTE
IOC0 IOC1 IOC2 IOC3 IOC4 IOC5 IOC6 IOC7
DDRQ
Port Multiplexer
RX TX
FP-bus (60 MHz)
DDRJ DDRM
Multiplexed Address/Data Bus Port Multiplexer DDRA PTA
DATA15 ADDR15 PA7 DATA14 ADDR14 PA6 DATA13 ADDR13 PA5 DATA12 ADDR12 PA4 DATA11 ADDR11 PA3 DATA10 ADDR10 PA2 DATA9 ADDR9 PA1 DATA8 ADDR8 PA0
16
PTB
PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0
Bridge
16
ADDR7 ADDR6 ADDR5 ADDR4 ADDR3 ADDR2 ADDR1 ADDR0
1.5K byte Endpoint Buffer
16
PTM PTU PTR PTS
DDRB
16
SWE SALE SCLE SWP SMHC SCE SCD SRE SBSY SDAT[0-7]
PTJ
PTQ
PTP
EXTAL XTAL
DDRP
BS
SCLK CMD CLK DAT0 SDHC DAT1 DAT2 DAT3
Multiplexed Wide Bus
Multiplexed Narrow Bus
DATA7 DATA6 DATA5 DATA4 DATA3 DATA2 DATA1 DATA0
DATA7 DATA6 DATA5 DATA4 DATA3 DATA2 DATA1 DATA0
16
DDRU
MSHC SDIO
PU0 PU1 PU2 PU3 PU4 PU5 PR0 PR1 PR2 PR3 PR4 PR5 PR6 PR7 PS0 PS1 PS2 PS3 PS4 PS5 PS6 PS7 PWROFF5V PWROFF3V
Integrated
Queue
Module (IQUE)
RPU RREF DPF DMF DPH DMH USB2.0 Physical Interface (PHY) USB2.0 Serial Interface Engine (SIE)
16 Q-bus (60MHz) 16 16
ATA5HC
CFHC
* This block diagram shows only one particular module to port routing. Detail module routing for different applications can be found in Signal Description Section. * Some pins are not available in 100-pin package. * IPbus runs at 1/2 frequency of S12 core bus, which is controlled by REFDV register of CRG_U module. *Qbus refers to the data transfer channels between IQUE and USB/ATA5HC/CFHC/MSHC/SDHC/SMHC.
Figure 1-1 MC9S12UF32 Block Diagram
Freescale Semiconductor
DDRS
DDRR
23
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
1.5 Device Memory Map
Table 1-1 shows the device memory map of the MC9S12UF32 after reset. Table 1-1 Device Memory Map
Address
$0000 - $000F $0010 - $0014 $0015 - $0016 $0017 - $0018 $0019 - $0019 $001A - $001B $001C - $001D $001E $001F $0020 - $0027 $0028 - $002F $0030 - $0033 $0034 - $003F $0040 - $006F $0070 - $00C7 $00C8 - $00CF $00D0 - $00FF $0100 - $010F $0110 - $011B $011C - $011F $0120 - $01BF $01C0- $01FF $0200 - $023F $0240 - $027F $0280 - $029F $02A0 - $02AF $02B0 - $02BF $02C0 - $02DF $02E0 - $02FF $0300 - $03FF $0000 - $07FF
Module
HCS12 Multiplexed External Bus Interface HCS12 Module Mapping Control HCS12 Interrupt Reserved Voltage Regulator (VREG_U) Device ID register (PARTID) HCS12 Module Mapping Control HCS12 Multiplexed External Bus Interface HCS12 Interrupt Reserved HCS12 Breakpoint Reserved Clock and Reset Generator (RTI, COP) Standard Timer 16-bit 8 channels (TIM) Reserved Serial Communication Interface (SCI) Reserved Flash Control Register Reserved RAM Control Register (SMRAM) Reserved ATA Host Controller (ATA5HC) Integrated Queue 4 channels (IQUE) Port Integration Module (PIM) CompactFlash Host Controller (CFHC) MemoryStick Host Controller (MSHC) SmartMedia Host Controller (SMHC) Secure Digital Host Controller (SDHC) Reserved USB 2.0 (USB20D6E2F) QRAM array (IQUE) 1.5K-byte 16-bit SRAM in IQUE module $0000 - $05FF 0.5K-byte reserved $0600-$07FF RAM array (SMRAM3P5K2E) configurable as 2500-byte16-bit SRAM $1200 - $1BC3 or two 10-bit even byte aligned SRAM located at $0800 $0FCF and $1000 - $17CF Unmapped locations in range $0800 - $1BC3 are reserved RAM array (SMRAM3P5K2E) 1084-byte 16-bit SRAM
Size (Bytes)
16 5 2 2 1 2 2 1 1 8 8 4 12 48 88 8 48 16 12 4 160 64 64 64 32 16 16 32 32 256 2048
Mapping Register(s)
INITRG
INITEE1
$0800 - $1BC3
5060 INITRM 1084
$1BC4 - $1FFF
24
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Table 1-1 Device Memory Map
$1800 - $3FFF $4000 - $7FFF $8000 - $BFFF $C000 - $FFFF Reserved 16K-byte Flash EEPROM Array (addresses valid only when ROMHM=0 of register MISC) 16K-byte Paged Window 16K-byte Flash EEPROM Array 10240 16384 16384 16384 PPAGE, MISC
NOTES: 1. QRAM starting address is controlled by INITEE register and QRAM has the same priority as EEPROM memory block. For details about signal priority, please refer to HCS12 MMC Block Guide.
$0000 $0000 $0400 $1000 $17FF $2000 $03FF $1000 $17FF $2000 $37FF $37FF
1K Register Space Mappable to any 2K Boundary 1.5K QRAM Space plus 0.5K Reserved Space Mappable to any 2K Boundary 1K Bytes 16-bit RAM plus 2.5K Bytes configurable RAM (see SMRAM) Mappable to any 8K Boundary
$8000 $8000 EXT 32K Fixed Flash EEPROM $C000
$FFFF $FF00 $FF00 $FFFF VECTORS NORMAL SINGLE CHIP MISC = $0F VECTORS EXPANDED MISC = $0E VECTORS SPECIAL SINGLE CHIP MISC = $0F $FFFF BDM (If Active)
The figure shows an example of an application memory map with the following register setting. This is not the map out of reset. INITRG = $00 INITRM = $20 INITEE = $11 PPAGE = $3E
Figure 1-2 MC9S12UF32 Memory Map (Application Example)
Freescale Semiconductor
25
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
1.5.1 Detailed Register Map
$0000 - $000F
Address $0000 $0001 $0002 $0003 $0004 $0007 $0008 $0009 $000A $000B $000C $000D $000E $000F Name PORTA PORTB DDRA DDRB Reserved PORTE DDRE PEAR MODE PUCR RDRIV EBICTL Reserved
MEBI map 1 of 3 (HCS12 Multiplexed External Bus Interface)
Bit 7 Read: Bit 7 Write: Read: Bit 7 Write: Read: Bit 7 Write: Read: Bit 7 Write: Read: 0 Write: Read: Bit 7 Write: Read: Bit 7 Write: Read: NOACCE Write: Read: MODC Write: Read: PUPKE Write: Read: RDPK Write: Read: 0 Write: Read: 0 Write: Bit 6 6 6 6 6 0 6 6 0 MODB 0 0 0 0 Bit 5 5 5 5 5 0 5 5 PIPOE MODA 0 0 0 0 Bit 4 4 4 4 4 0 4 4 NECLK 0 PUPEE RDPE 0 0 Bit 3 3 3 3 3 0 3 3 LSTRE IVIS 0 0 0 0 Bit 2 2 2 2 2 0 2 Bit 2 RDWE 0 0 0 0 0 Bit 1 1 1 1 1 0 Bit 1 0 0 EMK PUPBE RDPB 0 0 Bit 0 Bit 0 Bit 0 Bit 0 Bit 0 0 Bit 0 0 0 EME PUPAE RDPA ESTR 0
$0010 - $0014
Address $0010 $0011 $0012 $0013 $0014 Name INITRM INITRG INITEE MISC Reserved
MMC map 1 of 4 (HCS12 Module Mapping Control)
Bit 7 Read: RAM15 Write: Read: 0 Write: Read: EE15 Write: Read: 0 Write: Read: 0 Write: Bit 6 RAM14 REG14 EE14 0 0 Bit 5 RAM13 REG13 EE13 0 0 Bit 4 RAM12 REG12 EE12 0 0 Bit 3 RAM11 REG11 EE11 Bit 2 0 0 0 Bit 1 0 0 0 Bit 0 RAMHAL 0 EEON
EXSTR1 EXSTR0 ROMHM ROMON 0 0 0 0
26
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0015 - $0016
Address $0015 $0016 Name ITCR ITEST Read: Write: Read: Write:
INT map 1 of 2 (HCS12 Interrupt)
Bit 7 0 INTE Bit 6 0 INTC Bit 5 0 INTA Bit 4 WRINT INT8 Bit 3 ADR3 INT6 Bit 2 ADR2 INT4 Bit 1 ADR1 INT2 Bit 0 ADR0 INT0
$0017 - $0017
Address $0017 Name Reserved Read: Write:
MMC map 2 of 4 (HCS12 Module Mapping Control)
Bit 7 0 Bit 6 0 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 0 Bit 1 0 Bit 0 0
$0018 - $0018
Address $0018 Name Reserved Read: Write:
Reserved
Bit 7 0 Bit 6 0 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 0 Bit 1 0 Bit 0 0
$0019 - $0019
Address $0019 Name Reserved for Read: factory testing Write:
VREG_U (Voltage Regulator)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
$001A - $001B
Address $001A $001B Name PARTIDH PARTIDL Read: Write: Read: Write:
Device ID Register (Table 1-2)
Bit 7 ID15 ID7 Bit 6 ID14 ID6 Bit 5 ID13 ID5 Bit 4 ID12 ID4 Bit 3 ID11 ID3 Bit 2 ID10 ID2 Bit 1 ID9 ID1 Bit 0 ID8 ID0
$001C - $001D
Address $001C $001D Name MEMSIZ0 MEMSIZ1
MMC map 3 of 4 (HCS12 Module Mapping Control, Table 1-3)
Bit 7 Bit 6 Bit 5 Bit 4 Read: reg_sw0 0 eep_sw1 eep_sw0 Write: Read: rom_sw1 rom_sw0 0 0 Write: Bit 3 0 0 Bit 2 Bit 1 Bit 0 ram_sw2 ram_sw1 ram_sw0 0 pag_sw1 pag_sw0
$001E - $001E
Address $001E Name INTCR Read: Write:
MEBI map 2 of 3 (HCS12 Multiplexed External Bus Interface)
Bit 7 IRQE Bit 6 IRQEN Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 0 Bit 1 0 Bit 0 0
Freescale Semiconductor
27
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$001F - $001F
Address $001F Name HPRIO Read: Write:
INT map 2 of 2 (HCS12 Interrupt)
Bit 7 PSEL7 Bit 6 PSEL6 Bit 5 PSEL5 Bit 4 PSEL4 Bit 3 PSEL3 Bit 2 PSEL2 Bit 1 PSEL1 Bit 0 0
$0020 - $0027
Address $0020 $0027 Name Reserved Read: Write:
Reserved
Bit 7 0 Bit 6 0 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 0 Bit 1 0 Bit 0 0
$0028 - $002F
Address $0028 $0029 $002A $002B $002C $002D $002E $002F Name BKPCT0 BKPCT1 BKP0X BKP0H BKP0L BKP1X BKP1H BKP1L
BKP (HCS12 Breakpoint)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Read: 0 0 0 0 BKEN BKFULL BKBDM BKTAG Write: Read: BK0MBH BK0MBL BK1MBH BK1MBL BK0RWE BK0RW BK1RWE BK1RW Write: Read: 0 0 BK0V5 BK0V4 BK0V3 BK0V2 BK0V1 BK0V0 Write: Read: Bit 15 14 13 12 11 10 9 Bit 8 Write: Read: Bit 7 6 5 4 3 2 1 Bit 0 Write: Read: 0 0 BK1V5 BK1V4 BK1V3 BK1V2 BK1V1 BK1V0 Write: Read: Bit 15 14 13 12 11 10 9 Bit 8 Write: Read: Bit 7 6 5 4 3 2 1 Bit 0 Write:
$0030 - $0031
Address $0030 $0031 Name Reserved Reserved Read: Write: Read: Write:
MMC map 4 of 4 (HCS12 Module Mapping Control)
Bit 7 0 0 Bit 6 0 0 Bit 5 0 0 Bit 4 0 0 Bit 3 0 0 Bit 2 0 0 Bit 1 0 0 Bit 0 0 0
$0032 - $0033
Address $0032 $0033 Name Reserved Reserved Read: Write: Read: Write:
MEBI map 3 of 3 (HCS12 Multiplexed External Bus Interface)
Bit 7 0 0 Bit 6 0 0 Bit 5 0 0 Bit 4 0 0 Bit 3 0 0 Bit 2 0 0 Bit 1 0 0 Bit 0 0 0
28
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0034 - $003F
Address $0034 $0035 $0036 $0037 $0038 $0039 $003A $003B $003C $003D $003E $003F Name Reserved REFDV CTFLG Test Only CRGFLG CRGINT CLKSEL Reserved RTICTL COPCTL FORBYP Test Only CTCTL Test Only ARMCOP
CRG_U (Clock and Reset Generator)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Read: 0 0 0 0 0 0 0 0 Write: Read: 0 0 0 0 REFDV3 REFDV2 REFDV1 REFDV0 Write: Read: TOUT7 TOUT6 TOUT5 TOUT4 TOUT3 TOUT2 TOUT1 TOUT0 Write: Read: 0 LOCK 0 0 0 RTIF PORF LOCKIF Write: Read: 0 0 0 0 0 0 RTIE LOCKIE Write: Read: 0 0 PLLSEL SYSWAI ROAWAI CWAI RTIWAI COPWAI Write: Read: 0 0 0 0 0 0 0 0 Write: Read: 0 RTR6 RTR5 RTR4 RTR3 RTR2 RTR1 RTR0 Write: Read: 0 0 0 WCOP RSBCK CR2 CR1 CR0 Write: Read: 0 0 0 0 0 RTIBYP COPBYP FCM Write: Read: TCTL7 TCTL6 TCTL5 TCTL4 TCLT3 TCTL2 TCTL1 TCTL0 Write: Read: 0 0 0 0 0 0 0 0 Write: Bit 7 6 5 4 3 2 1 Bit 0
$0040 - $006F
Address $0040 $0041 $0042 $0043 $0044 $0045 $0046 $0047 $0048 $0049 Name TIOS CFORC OC7M OC7D TCNT (hi) TCNT (lo) TSCR1 TTOV TCTL1 TCTL2
TIM (Timer 16-Bit 8 Channels)
Bit 7 Read: IOS7 Write: Read: 0 Write: FOC7 Read: OC7M7 Write: Read: OC7D7 Write: Read: Bit 15 Write: Read: Bit 7 Write: Read: TEN Write: Read: TOV7 Write: Read: OM7 Write: Read: OM3 Write: Bit 6 IOS6 0 FOC6 OC7M6 OC7D6 14 6 TSWAI TOV6 OL7 OL3 Bit 5 IOS5 0 FOC5 OC7M5 OC7D5 13 5 TSFRZ TOV5 OM6 OM2 Bit 4 IOS4 0 FOC4 OC7M4 OC7D4 12 4 TFFCA TOV4 OL6 OL2 Bit 3 IOS3 0 FOC3 OC7M3 OC7D3 11 3 0 TOV3 OM5 OM1 Bit 2 IOS2 0 FOC2 OC7M2 OC7D2 10 2 0 TOV2 OL5 OL1 Bit 1 IOS1 0 FOC1 OC7M1 OC7D1 9 1 0 TOV1 OM4 OM0 Bit 0 IOS0 0 FOC0 OC7M0 OC7D0 Bit 8 Bit 0 0 TOV0 OL4 OL0
Freescale Semiconductor
29
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0040 - $006F
Address $004A $004B $004C $004D $004E $004F $0050 $0051 $0052 $0053 $0054 $0055 $0056 $0057 $0058 $0059 $005A $005B $005C $005D $005E $005F $0060 $0061 $0062 Name TCTL3 TCTL4 TIE TSCR2 TFLG1 TFLG2 TC0 (hi) TC0 (lo) TC1 (hi) TC1 (lo) TC2 (hi) TC2 (lo) TC3 (hi) TC3 (lo) TC4 (hi) TC4 (lo) TC5 (hi) TC5 (lo) TC6 (hi) TC6 (lo) TC7 (hi) TC7 (lo) PACTL PAFLG PACNT (hi)
TIM (Timer 16-Bit 8 Channels)
Bit 7 Read: EDG7B Write: Read: EDG3B Write: Read: C7I Write: Read: TOI Write: Read: C7F Write: Read: TOF Write: Read: Bit 15 Write: Read: Bit 7 Write: Read: Bit 15 Write: Read: Bit 7 Write: Read: Bit 15 Write: Read: Bit 7 Write: Read: Bit 15 Write: Read: Bit 7 Write: Read: Bit 15 Write: Read: Bit 7 Write: Read: Bit 15 Write: Read: Bit 7 Write: Read: Bit 15 Write: Read: Bit 7 Write: Read: Bit 15 Write: Read: Bit 7 Write: Read: 0 Write: Read: 0 Write: Read: Bit 7 Write: Bit 6 EDG7A EDG3A C6I 0 C6F 0 14 6 14 6 14 6 14 6 14 6 14 6 14 6 14 6 PAEN 0 6 Bit 5 EDG6B EDG2B C5I 0 C5F 0 13 5 13 5 13 5 13 5 13 5 13 5 13 5 13 5 PAMOD 0 5 Bit 4 EDG6A EDG2A C4I 0 C4F 0 12 4 12 4 12 4 12 4 12 4 12 4 12 4 12 4 PEDGE 0 4 Bit 3 EDG5B EDG1B C3I TCRE C3F 0 11 3 11 3 11 3 11 3 11 3 11 3 11 3 11 3 CLK1 0 3 Bit 2 EDG5A EDG1A C2I PR2 C2F 0 10 2 10 2 10 2 10 2 10 2 10 2 10 2 10 2 CLK0 0 2 Bit 1 EDG4B EDG0B C1I PR1 C1F 0 9 1 9 1 9 1 9 1 9 1 9 1 9 1 9 1 PAOVI PAOVF 1 Bit 0 EDG4A EDG0A C0I PR0 C0F 0 Bit 8 Bit 0 Bit 8 Bit 0 Bit 8 Bit 0 Bit 8 Bit 0 Bit 8 Bit 0 Bit 8 Bit 0 Bit 8 Bit 0 Bit 8 Bit 0 PAI PAIF Bit 0
30
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0040 - $006F
Address $0063 $0064 $0065 $0066 $0067 $0068 $0069 $006A $006B $006C $006D $006E $006F Name PACNT (lo) Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write:
TIM (Timer 16-Bit 8 Channels)
Bit 7 Bit 7 0 0 0 0 0 0 0 0 0 0 0 0 Bit 6 6 0 0 0 0 0 0 0 0 0 0 0 0 Bit 5 5 0 0 0 0 0 0 0 0 0 0 0 0 Bit 4 4 0 0 0 0 0 0 0 0 0 0 0 0 Bit 3 3 0 0 0 0 0 0 0 0 0 0 0 0 Bit 2 2 0 0 0 0 0 0 0 0 0 0 0 0 Bit 1 1 0 0 0 0 0 0 0 0 0 0 0 0 Bit 0 Bit 0 0 0 0 0 0 0 0 0 0 0 0 0
$0070 - $00C7
Address $0070 $00C7 Name Reserved Read: Write:
Reserved
Bit 7 0 Bit 6 0 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 0 Bit 1 0 Bit 0 0
$00C8 - $00CF
Address $00C8 $00C9 $00CA $00CB $00CC Name SCIBDH SCIBDL SCICR1 SCICR2 SCISR1
SCI (Asynchronous Serial Interface)
Bit 7 Bit 6 Read: 0 0 Write: Read: SBR7 SBR6 Write: Read: LOOPS SCISWAI Write: Read: TIE TCIE Write: Read: TDRE TC Write: Bit 5 0 SBR5 RSRC RIE RDRF Bit 4 SBR12 SBR4 M ILIE IDLE Bit 3 SBR11 SBR3 WAKE TE OR Bit 2 SBR10 SBR2 ILT RE NF Bit 1 SBR9 SBR1 PE RWU FE Bit 0 SBR8 SBR0 PT SBK PF
Freescale Semiconductor
31
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$00C8 - $00CF
Address $00CD $00CE $00CF Name SCISR2 SCIDRH SCIDRL Read: Write: Read: Write: Read: Write:
SCI (Asynchronous Serial Interface)
Bit 7 0 R8 R7 T7 Bit 6 0 T8 R6 T6 Bit 5 0 0 R5 T5 Bit 4 0 0 R4 T4 Bit 3 0 0 R3 T3 Bit 2 BRK13 0 R2 T2 Bit 1 TXDIR 0 R1 T1 Bit 0 RAF 0 R0 T0
$00D0 - $00FF
Address $00D0 $00FF Name Reserved Read: Write:
Reserved
Bit 7 0 Bit 6 0 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 0 Bit 1 0 Bit 0 0
$0100 - $010F
Address $0100 $0101 $0102 $0103 $0104 $0105 $0106 $0107 $0108 $0109 $010A $010B $010C $010F Name FCLKDIV FSEC FTSTMOD FCNFG FPROT FSTAT FCMD Reserved for Factory Test Reserved for Factory Test Reserved for Factory Test Reserved for Factory Test Reserved for Factory Test Reserved
Flash Control Register
Bit 7 Bit 6 Bit 5 Bit 4 Read: FDIVLD PRDIV8 FDIV5 FDIV4 Write: Read: KEYEN1 KEYEN0 NV5 NV4 Write: Read: 0 0 0 WRALL Write: Read: 0 CBEIE CCIE KEYACC Write: Read: FPOPEN NV6 FPHDIS FPHS1 Write: Read: CCIF CBEIF PVIOL ACCERR Write: Read: 0 0 CMDB6 CMDB5 Write: Read: 0 0 0 0 Write: Read: 0 0 0 0 Write: Read: 0 0 0 0 Write: Read: 0 0 0 0 Write: Read: 0 0 0 0 Write: Read: 0 0 0 0 Write: Bit 3 FDIV3 NV3 0 0 FPHS0 0 0 0 0 0 0 0 0 Bit 2 FDIV2 NV2 0 0 FPLDIS BLANK CMDB2 0 0 0 0 0 0 Bit 1 FDIV1 SEC1 0 BKSEL1 FPLS1 0 0 0 0 0 0 0 0 Bit 0 FDIV0 SEC0 0 BKSEL0 FPLS0 0 CMDB0 0 0 0 0 0 0
32
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0110 - $011B
Address $0110 $011B Name Reserved Read: Write:
Reserved
Bit 7 0 Bit 6 0 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 0 Bit 1 0 Bit 0 0
$011C - $011F
Address $011C $011D $011E $011F Name Read: SMRAMCFG Write: Read: SMRAMSTAT Write: Read: Reserved Write:
SMRAM Control Register
Bit 7 0 0 0 Bit 6 0 0 0 Bit 5 0 0 0 Bit 4 0 0 0 Bit 3 0 0 0 Bit 2 0 0 0 Bit 1 0 0 0 Bit 0 SMMODE PSMBA 0
$0120 - $01BF
Address $0120 $01BF Name Reserved Read: Write:
Reserved
Bit 7 0 Bit 6 0 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 0 Bit 1 0 Bit 0 0
$01C0 - $01FF
Address $01C0 $01C1 $01C2 $01C3 $01C4 $01C5 $01C6 $01C7 $01C8 $01C9 $01CA $01CB Name HCFG (hi) HCFG (lo) HSR (hi) HSR (lo) HPIO1 (hi) HPIO1 (lo) HPIO2 (hi) HPIO2 (lo) HPIO3 (hi) HPIO3 (lo) HPIO4 (hi) HPIO4 (lo) Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write:
ATA Host Controller (ATA5HC)
Bit 7 SMR 0 TIP 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Bit 6 FR 0 UREP 0 Bit 5 0 0 DRAB 0 Bit 4 0 0 0 0 Bit 3 CLK_EN 0 FF 0 PIO_T0 PIO_T2_8 PIO_T2_16 Bit 2 XNW 0 FE 0 Bit 1 IE 0 RERR 0 Bit 0 IORDY_E N 0 WERR 0
PIO_T2I
PIO_T4 PIO_T1 PIO_TA 0 0
Freescale Semiconductor
33
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$01C0 - $01FF
Address $01CC $01CD $01CE $01CF $01D0 $01D1 $01D2 $01D3 $01D4 $01D5 $01D6 $01D7 $01D8 $01D9 $01DA $01DB $01DC $01DD $01DE $01DF $01E0 $01E1 $01E2 $01E3 $01E4 Name HDMA1 (hi) HDMA1 (lo) HDMA2 (hi) HDMA2 (lo) Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write:
ATA Host Controller (ATA5HC)
Bit 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Bit 6 Bit 5 Bit 4 Bit 3 DMA_T0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UDMA_TFS TDMA_TU 0 0 UDMA_TMLI UDMA_TAZ UDMA_TENV UDMA_TSR UDMA_TSS UDMA_TRFS UDMA_TRP 0 0 UDMA_TACK UDMA_TZAH 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DMA_TD DMA_TK DMA_TM DMA_TH DMA_TJ DMA_TN 0 0 Bit 2 Bit 1 Bit 0
HDMA3 (hi) HDMA3 (lo)
HDMA4 (hi) HDMA4 (lo) HUDMA1 (hi) HUDMA1 (lo) HUDMA2 (hi) HUDMA2 (lo)
UDMA_T2CYCTYP UDMA_TCYC UDMA_TDS UDMA_TDH UDMA_TDVS UDMA_TDVH
HUDMA3 (hi) HUDMA3 (lo)
HUDMA4 (hi) HUDMA4 (lo) HUDMA5 (hi) HUDMA5 (lo) HUDMA6 (hi) HUDMA6 (lo) HUDMA7 (hi) HUDMA7 (lo) HUDMA8 (hi) HUDMA8 (lo) HUDMA9 (hi)
34
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$01C0 - $01FF
Address $01E5 $01E6 $01ED $01EE $01EF $01F0 $01F1 $01F2 $01F3 $01F4 $01F5 $01F6 $01F7 $01F8 $01F9 $01FA $01FB $01FC $01FD $01FE $01FF Name HUDMA9 (lo) Reserved DCTR/DASR1 (hi) DCTR/DASR1 (lo) DDR (hi)1 DDR (lo)1 DFR/DER (hi)1 DFR/DER (lo)1 DSCR (hi)1 DSCR (lo)1 DSNR (hi)1 DSNR (lo)1 DCLR (hi)1 DCLR (lo)1 DCHR (hi)1 DCHR (lo)1 DDHR (hi)1 DDHR (lo)1 DCR/DSR (hi)1 HDMAM (lo) Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write:
ATA Host Controller (ATA5HC)
Bit 7 0 0 BSY 0 Bit 6 0 0 DRDY 0 0 Bit 5 0 0 # 0 Bit 4 0 0 Bit 3 0 0 DRQ 0 SRST 0 Bit 2 0 0 obs nIEN 0 Bit 1 0 0 Bit 0 0 0 ERR ZERO 0
BYTE_E BYTE_O #r1 #w 0 0 0 0 # 0 0 0 0 # 0 0 0 0 # 0 0 0 0 # 0 obs 0 BSY PIE 0 #1 0 DRDY HUT AF 0 obs 0 #r #w 0 IE UDMA RD WR 0 DEV 0 0 DRQ 0 obs 0 0 #2 0 0 ERR 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ABRT #r2
NOTES: 1. These registers are mapped to the registers on an external ATA/ATAPI device, for detail explanation of the #, #r1, #r2, #w, #1,#2 field, please refer to the ATAHC block guide and ATA/ATAPI standards.
Freescale Semiconductor
35
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0200 - $023F
Address $0200 $0201 $0202 $0203 $0204 $0205 $0206 $0207 $0208 $0209 $020A $020B $020C $020D $020E $020F $0210 $0211 $0212 $0213 $0214 $0215 $0216 $0217 $0218 Name IQUECR Reserved QC1DR (hi) QC1DR (lo) QC1BP (hi) QC1BP (lo) QC1EP (hi) QC1EP (lo) QC1CR QC1SR QC1SZB QC1REQ QC2DR (hi) QC2DR (lo) QC2BP (hi) QC2BP (lo) QC2EP (hi) QC2EP (lo) QC2CR QC2SR QC2SZB QC2REQ QC3DR (hi) QC3DR (lo) QC3BP (hi)
IQUE (Integrated Queue Module)
Bit 7 Read: 0 Write: Read: 0 Write: Read: Write: Read: Write: Read: 0 Write: Read: Write: Read: 0 Write: Read: Write: Read: Q1VIE Write: Read: Q1VSF Write: Read: Write: Read: 0 Write: Read: Write: Read: Write: Read: 0 Write: Read: Write: Read: 0 Write: Read: Write: Read: Q2VIE Write: Read: Q2VSF Write: Read: Write: Read: 0 Write: Read: Write: Read: Write: Read: 0 Write: Bit 6 0 0 Bit 5 0 0 Bit 4 Bit 3 Bit 2 0 0 Bit 1 0
IQUERST
Bit 0 IQUEEN 0
QC34DBE QC12DBE
0 Q1DATA Q1DATA
0
0
0
0
0 BEGPTR
BEGPTR
0
0
0 ENDPTR
ENDPTR
Q1EIE Q1FSF
Q1FIE Q1ESF
Q1EN Q1VIF 0
Q1SML Q1FIF 0
Q116EN Q1THRU Q1EIF 0 QBASE 0
0
Q1PRST
0
QSIZE 0 0 0 Q2DATA Q2DATA 0 0 0 BEGPTR 0 0 0 ENDPTR Q2EIE Q2FSF Q2FIE Q2ESF Q2EN Q2VIF 0 Q2SML Q2FIF 0
Q1REQ
BEGPTR
ENDPTR
Q216EN Q2THRU Q2EIF 0 QBASE 0
0
Q2PRST
0
QSIZE 0 0 0 Q3DATA Q3DATA 0 0 0
Q2REQ
BEGPTR
36
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0200 - $023F
Address $0219 $021A $021B $021C $021D $021E $021F $0220 $0221 $0222 $0223 $0224 $0225 $0226 $0227 $0228 $0229 $022A $022B $022C $022D $022E $022F Name QC3BP (lo) QC3EP (hi) QC3EP (lo) QC3CR QC3SR QC3SZB QC3REQ QC4DR (hi) QC4DR (lo) QC4BP (hi) QC4BP (lo) QC4EP (hi) QC4EP (lo) QC4CR QC4SR QC4SZB QC4REQ QC12DCR QC34DCR QC12DSR QC34DSR QCDCT (hi) QCDCT (lo) Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write:
IQUE (Integrated Queue Module)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
BEGPTR 0 0 0 0 ENDPTR Q3VIE Q3VSF Q3EIE Q3FSF Q3FIE Q3ESF Q3EN Q3VIF 0 Q3SML Q3FIF 0 Q316EN Q3THRU Q3EIF 0 QBASE 0 0 Q4DATA Q4DATA 0 0 0 0 BEGPTR 0 0 0 0 ENDPTR Q4VIE Q4VSF Q4EIE Q4FSF Q4FIE Q4ESF Q4EN Q4VIF 0 Q4SML Q4FIF 0 Q416EN Q4THRU Q4EIF 0 QBASE 0 0 0 DBFIF DBFIF 0 SBTE SBTE 0 0 DBTIE DBTIE 0 0 Q4REQ DBEIE DBEIE 0 0 0 DBRST 0 DBFIE DBRST DBSF DBFIE DBSF 0 0
Q4PRST
ENDPTR
0
Q3PRST
0
0
QSIZE 0 0
Q3REQ
BEGPTR
ENDPTR
0
QSIZE 0 0 0 DBTCIF DBTCIF 0 0 0 DBEIF DBEIF
DBTRAN34 DBTRAN12
Freescale Semiconductor
37
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0200 - $023F
Address $0230 $0231 $0232 $023F Name QC12DSHR QC34DSHR Reserved Read: Write: Read: Write: Read: Write:
IQUE (Integrated Queue Module)
Bit 7 0 RXDF 0 RXDF 0 Bit 6 0 RXDA 0 RXDA 0 Bit 5 0 TXRD 0 TXRD 0 Bit 4 0 TXDA 0 TXDA 0 Bit 3 0 0 0 Bit 2 0 0 0 Bit 1 DRHE DRHE 0 Bit 0 DTHE DTHE 0
$0240 - $027F
Address $0240 $0241 $0242 $0243 $0244 $0245 $0246 $0247 $0248 $0249 $024A $024B $024C $024D $024E $024F $0250 $0251 $0252 $0253 $0254 Name PTT PTIT DDRT RDRT PERT PPST Reserved PTM PTIM DDRM RDRM PERM PPSM Reserved PTJ PTIJ DDRJ RDRJ PERJ Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write:
PIM (Port Integration Module PIM_9UF32)
Bit 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Bit 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Bit 5 0 0 0 0 0 0 0 PTM5 PTIM5 DDRM5 RDRM5 PERM5 PPSM5 0 0 0 0 0 0 Bit 4 0 0 0 0 0 0 0 PTM4 PTIM4 DDRM4 RDRM4 PERM4 PPSM4 0 0 0 0 0 0 Bit 3 PTT3 PTIT3 DDRT3 RDRT3 PERT3 PPST3 0 PTM3 PTIM3 DDRM3 RDRM3 PERM3 PPSM3 0 0 0 0 0 0 Bit 2 PTT2 PTIT2 DDRT2 RDRT2 PERT2 PPST2 0 PTM2 PTIM2 DDRM2 RDRM2 PERM2 PPSM2 0 PTJ2 PTIJ2 DDRJ2 RDRJ2 PERJ2 Bit 1 PTT1 PTIT1 DDRT1 RDRT1 PERT1 PPST1 0 PTM1 PTIM1 DDRM1 RDRM1 PERM1 PPSM1 0 PTJ1 PTIJ1 DDRJ1 RDRJ1 PERJ1 Bit 0 PTT0 PTIT0 DDRT0 RDRT0 PERT0 PPST0 0 PTM0 PTIM0 DDRM0 RDRM0 PERM0 PPSM0 0 PTJ0 PTIJ0 DDRJ0 RDRJ0 PERJ0
38
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0240 - $027F
Address $0255 $0256 $0257 $0258 $0259 $025A $025B $025C $025D $025E $025F $0260 $0261 $0262 $0263 $0264 $0265 $0266 $0267 $0268 $0269 $026A $026B $026C $026D $026E $026F $0270 Name PPSJ Reserved MODRR PTP PTIP DDRP RDRP PERP PPSP Reserved PTQ PTIQ DDRQ RDRQ PERQ PPSQ Reserved PTR PTIR DDRR RDRR PERR PPSR Reserved PTS Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write:
PIM (Port Integration Module PIM_9UF32)
Bit 7 0 0 0 PTP7 PTIP7 DDRP7 RDRP7 PERP7 PPSP7 0 PTQ7 PTIQ7 DDRQ7 RDRQ7 PERQ7 PPSQ7 0 PTR7 PTIR7 DDRR7 RDRR7 PERR7 PPSR7 0 PTS7 Bit 6 0 0 0 PTP6 PTIP6 DDRP7 RDRP6 PERP6 PPSP6 0 PTQ6 PTIQ6 DDRQ7 RDRQ6 PERQ6 PPSQ6 0 PTR6 PTIR6 DDRR7 RDRR6 PERR6 PPSR6 0 PTS6 Bit 5 0 0 0 PTP5 PTIP5 DDRP5 RDRP5 PERP5 PPSP5 0 PTQ5 PTIQ5 DDRQ5 RDRQ5 PERQ5 PPSQ5 0 PTR5 PTIR5 DDRR5 RDRR5 PERR5 PPSR5 0 PTS5 Bit 4 0 0 Bit 3 0 0 Bit 2 PPSJ2 0 Bit 1 PPSJ1 0 Bit 0 PPSJ0 0
MODRR4 MODRR3 MODRR2 MODRR1 MODRR0 PTP4 PTIP4 DDRP4 RDRP4 PERP4 PPSP4 0 PTQ4 PTIQ4 DDRQ4 RDRQ4 PERQ4 PPSQ4 0 PTR4 PTIR4 DDRR4 RDRR4 PERR4 PPSR4 0 PTS4 PTP3 PTIP3 DDRP3 RDRP3 PERP3 PPSP3 0 PTQ3 PTIQ3 DDRQ3 RDRQ3 PERQ3 PPSQ3 0 PTR3 PTIR3 DDRR3 RDRR3 PERR3 PPSR3 0 PTS3 PTP2 PTIP2 DDRP2 RDRP2 PERP2 PPSP2 0 PTQ2 PTIQ2 DDRQ2 RDRQ2 PERQ2 PPSQ2 0 PTR2 PTIR2 DDRR2 RDRR2 PERR2 PPSR2 0 PTS2 PTP1 PTIP1 DDRP1 RDRP1 PERP1 PPSP1 0 PTQ1 PTIQ1 DDRQ1 RDRQ1 PERQ1 PPSQ1 0 PTR1 PTIR1 DDRR1 RDRR1 PERR1 PPSR1 0 PTS1 PTP0 PTIP0 DDRP0 RDRP0 PERP0 PPSS0 0 PTQ0 PTIQ0 DDRQ0 RDRQ0 PERQ0 PPSQ0 0 PTR0 PTIR0 DDRR0 RDRR0 PERR0 PPSR0 0 PTS0
Freescale Semiconductor
39
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0240 - $027F
Address $0271 $0272 $0273 $0274 $0275 $0276 $0277 $0278 $0279 $027A $027B $027C $027D $027E $027F Name PTIS DDRS RDRS PERS PPSS Reserved PTU PTIU DDRU RDRU PERU PPSU Reserved
PIM (Port Integration Module PIM_9UF32)
Bit 7 Read: PTIS7 Write: Read: DDRS7 Write: Read: RDRS7 Write: Read: PERS7 Write: Read: PPSS7 Write: Read: 0 Write: Read: 0 Write: Read: 0 Write: Read: 0 Write: Read: 0 Write: Read: 0 Write: Read: 0 Write: Read: 0 Write: Bit 6 PTIS6 DDRS7 RDRS6 PERS6 PPSS6 0 0 0 0 0 0 0 0 Bit 5 PTIS5 DDRS5 RDRS5 PERS5 PPSS5 0 PTU5 PTIU5 DDRU5 RDRU5 PERU5 PPSU5 0 Bit 4 PTIS4 DDRS4 RDRS4 PERS4 PPSS4 0 PTU4 PTIU4 DDRU4 RDRU4 PERU4 PPSU4 0 Bit 3 PTIS3 DDRS3 RDRS3 PERS3 PPSS3 0 PTU3 PTIU3 DDRU3 RDRU3 PERU3 PPSU3 0 Bit 2 PTIS2 DDRS2 RDRS2 PERS2 PPSS2 0 PTU2 PTIU2 DDRU2 RDRU2 PERU2 PPSU2 0 Bit 1 PTIS1 DDRS1 RDRS1 PERS1 PPSS1 0 PTU1 PTIU1 DDRU1 RDRU1 PERU1 PPSU1 0 Bit 0 PTIS0 DDRS0 RDRS0 PERS0 PPSS0 0 PTU0 PTIU0 DDRU0 RDRU0 PERU0 PPSU0 0
$0280 - $029F
Address $0280 $0281 $0282 $0283 $0284 $0285 $0286 $0287 $0288 Name CFISR (hi) CFISR (lo) CFCCR (hi) CFCCR (lo) CFSCR1 (hi) CFSCR1 (lo) CFSCR2 (hi) CFSCR2 (lo) CFCR (hi)
CFHC (Compact Flash Host Controller)
Bit 7 Read: 0 Write: Read: INPACK Write: Read: 0 Write: Read: 0 Write: Read: CFE Write: Read: CFRFIE Write: Read: CA10E Write: Read: 0 Write: Read: 0 Write: Bit 6 0 VS 0 0 CFOE CFTEIE CA9E 0 0 0 0 Bit 5 0 RDY 0 0 CRST OOIE CA8E Bit 4 0 IOIS16 0 0 DISINC CIE CA7E Bit 3 0 CD2 0 CE2B CFSWAI VSIE CA6E Bit 2 0 CD1 0 CE1B IEDGE RDYIE CA5E Bit 1 VCC SPKRB 0 REGB Bit 0 CWAIT CHG 0 COM
WERRIE TERRIE CHGIE CA4E CDIE 0
TPS5-TPS0 0 0 0 0
40
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0280 - $029F
Address $0289 $028A $028B $028C $028D $028E $028F $0290 $0291 $0292 $0293 $0294 $029F Name CFCR (lo) CFBBAR (hi) CFBBAR (lo) CFBSR (hi) CFBSR (lo) CFPMR (hi) CFPMR (lo) CFDR (hi) CFDR (lo) CFIFR (hi) CFIFR (lo) Reserved
CFHC (Compact Flash Host Controller)
Bit 7 Read: HIS Write: Read: 0 Write: Read: Write: Read: 0 Write: Read: 0 Write: BS7 Read: 0 Write: Read: 0 Write: Read: Write: Read: Write: Read: 0 Write: Read: CFRFIF Write: Read: 0 Write: Bit 6 BSY 0 Bit 5 0 0 Bit 4 TQ 0 Bit 3 RQ 0 Bit 2 STOP Bit 1 0 INVOKE BBA10-BBA8 Bit 0 RWB
BBA7-BBA0 0 0 BS6 0 0 0 0 BS5 0 0 0 0 BS4 0 0 0 0 BS3 0 0 0 0 BS2 0 0 0 0 BS1 0 CPE 0 BS8 0 BS0 0 CVS
RD15-RD8
TD15-TD8
RD7-RD0
TD7-TD0
0 CFTEIF 0 0 OOIF 0 0 CIF 0 VSIF 0 0 RDYIF 0 WERRIF CHGIF 0 TERRIF CDIF 0
0
0
$02A0 - $02AF
Address $02A0 $02A1 $02A2 $02A3 $02A4 $02A5 $02A6 $02A7 $02A8 $02A9 Name MSCMD (hi) MSCMD (lo) MSC0 MSS0 MSTDATA (hi) MSTDATA (lo) MSRDATA (hi) MSRDATA (lo) MSIC MSIS Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write:
MSHC (Memory Stick Host Controller)
Bit 7 Bit 6 PID Bit 5 Bit 4 Bit 3 0 Bit 2 0 Bit 1 Bit 0
DATASIZE9-8
DATASIZE7-0 RST 0 0 0 PWS 0 0 SIEN 0 0 MSCE 0 NOCRC RBE RBF 0 0 BSYCNT TBE 0 0 TBF 0 0
0 0 INTE RDY
0 0 TX DATA BUFFER 15-8 0 0 0 0 TX DATA BUFFER 7-0 RX DATA BUFFER 15-8 0 0 0 0 RX DATA BUFFER 7-0 0 0 0 0 0 DTRQIE DTCMPIE FAEEN SIF DTRQ DTCMP 0
0 0 0 FAE
0 0 0 CRCE
0 0 0 TOE
Freescale Semiconductor
41
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$02A0 - $02AF
Address $02AA $02AB $02AC $02AD $02AE $02AF Name Read: MSC1 Write: Read: MSS1 Write: Read: MSACMD (hi) Write: Read: MSACMD (lo) Write: Read: Reserved Write: Read: Reserved Write:
MSHC (Memory Stick Host Controller)
Bit 7 ACD RUN Bit 6 0 TOV APID Bit 5 DIV 0 0 Bit 4 Bit 3 DTRQE 0 0 ADATASIZE7-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Bit 2 0 0 0 Bit 1 RFF 0 Bit 0 TFE 0
ADATASIZE9-8
$02B0 - $02BF
Address Name Read: $02B0 SMC Write: Read: $02B1 SMHS Write: Read: SMTDATA/ $02B2 SMRDATA (hi) Write: Read: SMTDATA/ $02B3 SMRDATA (lo) Write: Read: $02B4 SMISR Write: Read: $02B5 SMIMR Write: Read: $02B6 SMS Write: Read: $02B7 SMFCS Write: Read: $02B8 SMCLKR Write: Read: $02B9 Reserved $02BF Write:
SMHC (Smart Media Host Controller)
Bit 7 0 0 Bit 6 SMHCEN 0 Bit 5 FRST 0 Bit 4 SMRST 0 Bit 3 QEN 0 Bit 2 ECCEN 0 Bit 1 CNT1 0 Bit 0 CNT0 0 SCE
Rx DATA BUFFER 15-8 Tx DATA BUFFER 15-8 Rx DATA BUFFER 7-0 Tx DATA BUFFER 7-0 0 INTEN 0 0 0 0 HCE ECCR RDR RDP CDIN CDOUT
CDOUTIEN
RDY RDYIEN CP TBF PS0 0
HCEIEN ECCRIEN RDRIEN RDPIEN CDINIEN CEC 0 0 0 SME RFL 0 0 BAF2P TFL 0 0 BAF1P RBE 0 0 DRQ RBF PS2 0
BUSY TBE PS1 0
$02C0 - $02DF
Address $02C0 $02C1 $02C2 $02C3 Name SDCON (hi) SDCON (lo) SDSTAT (hi) SDSTAT (lo)
SDHC (Secure Digital Host Controller)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Read: 0 0 0 0 0 Write: Read: 0 0 LBUF IRST PUEN Write: BLK_RDY FFULL FEMPTY Read: 0 CD Write: Read: SDCKON WR_ECRC_NODE RSP_ECRC RD_ECRC Write: Bit 2 0 PDEN ECR
WR_ECRC
Bit 1 0 QIEN WRDN RSPTO
Bit 0 0 SDEN DTDN RDTO
42
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$02C0 - $02DF
Address $02C4 $02C5 $02C6 $02C7 $02C8 $02C9 $02CA $02CB $02CC $02CD $02CE $02CF $02D0 $02D1 $02D2 $02D3 $02D4 $02D5 $02D6 $02D7 $02D8 $02D9 $02DA $02DB $02DC $02DF Name SDCLKCON (hi) SDCLKCON (lo) SDCMDATCO N (hi) SDCMDATCO N (lo) SDRTOUT (hi) SDRTOUT (lo) SDRDTOUT (hi) SDRDTOUT (lo) SDBLKLN (hi) SDBLKLN (lo) SDNOBLK (hi) SDNOBLK (lo) SDINTREN (hi) SDINTREN (lo) SDCMDNO (hi) SDCMDNO (lo) SDARGH (hi) SDARGH (lo) SDARGL (hi) SDARGL (lo) SDRSP (hi) SDRSP (lo) SDATA (hi) SDATA (lo) Reserved Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write:
SDHC (Secure Digital Host Controller)
Bit 7 0 0 0 INIT 0 0 Bit 6 0 0 0 BUSY 0 Bit 5 0 0 0 MBLK 0 Bit 4 0 0 0 SBMOD 0 Bit 3 0 SCLKEN 0 WRD 0 RSP_TO RD_TO 15-8 RD_TO 7-0 0 0 0 0 0 0 BLEN9 BLEN8 NOBEN DATAEN 0 0 Bit 2 0 Bit 1 0 CLKRATE WBUS RSPNO 0 0 Bit 0 0
BLEN 7-0 NOB 15-8 NOB 7-0 0 0 0 0 0 0 0 0 HARG 15-8 HARG 7-0 LARG 15-8 LARG 7-0 CRSP 15-8 CRSP 7-0 SDAT 15-8 SDAT 7-0 0 0 0 0 0 0 0 0 0 CDIE 0 0 ECRIE 0 0 0 0 CRCIE 0 0 TOIE 0
WRDNIE DTDNIE 0 CMDNO 0
Freescale Semiconductor
43
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$02E0 - $02FF
Address $02E0 $02FF Name Reserved Read: Write:
Reserved
Bit 7 0 Bit 6 0 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 0 Bit 1 0 Bit 0 0
$0300 - $03FF
Address $0300 $0301 $0302 $0303 $0304 $0305 $0306 $0307 $0308 $0309 $030A $030B $030C $030D $030E $030F $0310 $0311 $0312 $0313 $0310 Name UMCR (hi) UMCR (lo) UMSR1 (hi) UMSR1 (lo) UIMR (hi) UIMR (lo) Reserved Reserved Reserved for Factory Testing Reserved for Factory Testing UTSR (hi) UTSR (lo) UCCSR (hi) UCCSR (lo) UEPCSELR (hi) UEPCSELR (lo) UPECFGR1 (bit 31-24) UPECFGR1 (bit 23-16) UPECFGR1 (bit 15-8) UPECFGR1 (bit 7-0) UNCIR (bit 31-24)
USB20D6E2F (Universal Serial Bus 2.0 Device Controller)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Read: 0 0 0 0 MEN MCE RESUME SPHY Write: MRST PHYRST EPRST Read: 0 0 DISCON SDSUP EXSPD RWUC SPWR SCSUP Write: Read: ACTEP ENUMD 0 0 USSC URSC Write: Read: 0 SPD 0 USD URD SOF SETOVR SETUP Write: Read: 0 0 0 0 RESUMEIE SETECRIE USSCIE URSCIE Write: Read: 0 0 0 0 0 SOFIE SETOVRIE SETUPIE Write: Read: 0 0 0 0 0 0 0 0 Write: Read: 0 0 0 0 0 0 0 0 Write: Read: Write: Read: Write: Read: 0 0 0 0 0 TIMEST 10-8 Write: Read: TIMEST 7-0 Write: Read: CFGVALID INTFVALID SETECR CFG DONEECRU Write: Read: INTF ALTINTF Write: Read: 0 0 0 0 UCRSEL Write: Read: 0 0 EPBSEL1 EPBSEL0 Write: Read: NISOF MAXPSZ Write: Read: MAXPSZ EPASET Write: Read: EPASET EPINTF EPCFG Write: Read: EPCFG EPTYPE EPDIR EPNUM Write: Read: 0 0 0 0 0 0 0 0 Write:
44
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0300 - $03FF
Address $0311 $0312 $0313 $0310 $0311 $0312 $0313 $0314 $0315 $0316 $0317 $0318 $0319 $031A $031B $031C $031D $031E $031F $0320 $0321 $0322 $0323 $0324 $0337 $0338 $033F Name UNCIR (bit 23-16) UNCIR (bit 15-8) UNCIR (bit 7-0) UNASR (bit 31-24) UNASR (bit 23-16) UNASR (bit 15-8) UNASR (bit 7-0) UEPCSR0 (hi) UEPCSR0 (lo) UEPCSR1 (hi) UEPCSR1 (lo) UEPCSR2 (hi) UEPCSR2 (lo) UEPCSR3 (hi) UEPCSR3 (lo) UEPCSR4A (hi) UEPCSR4A (lo) UEPCSR4B (hi) UEPCSR4B (lo) UEPCSR5A (hi) UEPCSR5A (lo) UEPCSR5B (hi) UEPCSR5B (lo) Reserved USTB Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write: Read: Write:
USB20D6E2F (Universal Serial Bus 2.0 Device Controller)
Bit 7 0 0 0 Bit 6 0 0 Bit 5 0 0 NINTC1 NAI3C2 NAI1C2 NAI3C1 NAI1C1 STALL 0 STALL 0 STALL 0 STALL 0 STALL SNAK TFRC TCIE DVALID TFRC TCIE DVALID TFRC TCIE DVALID TFRC TCIE DVALID TFRC TCIE 0 TXSIZ 0 RXSIZ 0 RXTXSIZ 0 RXTXSIZ CTERR RXSIZ 0 0 0 0 0 0 0 0 0 0 Bit 4 0 0 Bit 3 0 0 0 0 NAI2C2 NAI0C2 NAI2C1 NAI0C1 0 0 Bit 2 0 Bit 1 0 NINTC2 NCFG Bit 0 0
RXSIZ SPKT SPKTIE TFRERR TERRIE CURMP STALL SNAK TFRC TCIE CTERR EBAVA MPPB TXSIZ 0 0
TXSIZ 0 0 TFRERR TERRIE CURMP 0 0 MPPB BVLD
Setup Data Buffer
Freescale Semiconductor
45
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$0300 - $03FF
Address $0340 $037F $0380 $03BF $03C0 $03FF Name Reserved UEPLB0 UEPLB1 Read: Write: Read: Write: Read: Write:
USB20D6E2F (Universal Serial Bus 2.0 Device Controller)
Bit 7 0 Bit 6 0 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 0 Bit 1 0 Bit 0 0
Endpoint Local Buffer Endpoint Local Buffer
1.6 Part ID Assignments
The part ID is located in two 8-bit registers PARTIDH and PARTIDL (addresses $001A and $001B after reset). The read-only value is a unique part ID for each revision of the chip. Table 1-2 shows the assigned part ID number. Table 1-2 Assigned Part ID Numbers
Device MC9S12UF32 MC9S12UF32 MC9S12UF32 MC9S12UF32 Mask Set Number 0L24N 1L79R 0L47S 1L47S Part ID1 $6300 $6300 $6310 $6311
NOTES: 1. The coding is as follows: Bit 15-12: Major family identifier Bit 11-8: Minor family identifier Bit 7-4: Major mask set revision number including FAB transfers Bit 3-0: Minor - non full - mask set revision
The device memory sizes are located in two 8-bit registers MEMSIZ0 and MEMSIZ1 (addresses $001C and $001D after reset). Table 1-3 shows the read-only values of these registers. Refer to section Module Mapping and Control (MMC) of HCS12 Core Guide for further details.
Table 1-3 Memory size registers
Register name MEMSIZ0 MEMSIZ1 Value $12 $80
46
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Section 2 Signal Description
The 9S12UF32 has two package options, the first one is a full featured 100-pin package and the second one in a low cost 64-pin package. In the 100-pin option, three primary software selectable configurations are available for different end applications. * * * USB 2.0 to ATA and CF bridge USB 2.0 to ATA, SM, SD (MMC) and MS bridge USB 2.0 to CF, SM, SD (MMC) and MS bridge
Below table shows a summary of how the above configurations can be selected. Table 2-1 Configuration selection in 100-pin option
Configuration MODRR Recommended IO supply voltage Modules that can be enabled Modules that must not be enabled Other Supporting Modules that can be enabled ATA and CF bridge $10 VDDX = 3.3V VDD3X = 3.3V ATA5HC, CFHC SMHC, SDHC, MSHC SCI, TIM When TIMER is enabled, timer channel pins IOC[7:4] will be available on PR[7:4] if CA10E, CA9E, CA8E and CA7E in CFSCR2 of CFHC are set to 0. Specific Notes ATA, SM, SD and MS CF, SM, SD and MS bridge bridge $00 $00 VDDX = 3.3V VDDX = 5.0V/3.3V VDD3X = 3.3V VDD3X = 3.3V ATA5HC, SMHC, SDHC and CFHC, SMHC, SDHC, MSHC MSHC CFHC SCI, TIM ATA5HC SCI, TIM When TIMER is enabled, timer channel pins IOC[7:4] will be available on PR[7:4] if CA10E, CA9E, CA8E and CA7E in CFSCR2 of CFHC are set to 0.
General Notes
None When SCI is enabled, SCI When SCI is enabled, SCI module pins TXD and RXD module pins TXD and RXD will be available on PR[3:2] will be available on PR[3:2] if CA6E and CA5E in if CA6E and CA5E in CFSCR2 of CFHC are set CFSCR2 of CFHC are set to to 0. 0. If the pins are associated with a module which is not enabled, those pins can be served as general purpose I/O at the voltage of the corresponding power supply rail.
In the 64-pin option, four primary software selectable configurations are available for different end applications. * * USB 2.0 to ATA bridge with optional SDHC support USB 2.0 to SM, SD (MMC) and MS bridge
Freescale Semiconductor
47
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
*
USB 2.0 to CF bridge
Below table shows a summary of how the above configurations can be selected. Table 2-2 Configuration selection in 64-pin option
Configuration MODRR Recommended IO supply voltage Modules that can be enabled Modules that must not be enabled Other Supporting Modules that can be enabled ATA bridge $03 VDDX = 3.3V VDD3X = 3.3V ATA5HC, SDHC CFHC, SMHC, MSHC SCI, TIM SCI pins are routed to PS[5:4] SCI pins are routed to When TIMER is enabled, PS[5:4] timer channel pins IOC[7:5] will be available on PQ[7:5]; Timer pins are routed to IOC[3:2] are routed to PB[7:0]. PM[4:3]; IOC[1:0] are routed to PT[1:0] SDHC pins routed to PA[5:0] SDHC pins are routed to PQ[6:5], PM[4:3] and SMHC pins routed to PA6 PT[1:0] and PS[7:6] When SDHC is enabled, Timer channels IOC[6:5] and IOC[3:0] pins will not be available. SM, SD and MS bridge $0F VDDX = 3.3V VDD3X = 3.3V SMHC, SDHC and MSHC ATA5HC, CFHC SCI, TIM CF bridge $03 VDDX = 5.0V/3.3V VDD3X = 5.0V/3.3V1 CFHC, ATA5HC, SMHC, SDHC, MSHC SCI, TIM
SCI pins are routed to PS[5:4] When TIMER is enabled, timer channel pins IOC[7:4] will be available on PQ[7:4] if CA7E, CA6E, CA5E and CA4E in CFSCR2 of CFHC are set to 0.
Specific Notes
General Notes
Appropriate external pull up/down resistors required on SDCMD, SDATA0 and SDATA3. If the pins are associated with a module which is not enabled, those pins can be served as general purpose I/O at the voltage of the corresponding power supply rail.
Appropriate external pull Timer channels IOC[3:0] up/down resistors required are not available at pin on MSBS, MSSCLK, level. MSSDIO, SDCMD, SDATA0, SDATA1, SDATA2 and SDATA3.
NOTES: 1. VDDX and VDD3X should be at the same voltage as the CF card. Care should be taken when CFA3, CFA8, CFA9 and CFA10 are connected to CF card as they are supplied by VDDR with output swing of 0V to VDDR.
48
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.1 Device Pinout
Figure 2-1 shows the pin assignments for 100-pin option.
MODB/IPIPE1/PE6 NOACC/PE7 PWROFF3V PWROFF5V MODC/TAGHI/BKGD TEST RESET VDD VSSR VDDR VREGEN REF3V SDAT0/ACFD00/AATAD00/PQ0 SDAT1/ACFD01/AATAD01/PQ1 SDAT2/ACFD02/AATAD02/PQ2 SDAT3/ACFD03/AATAD03/PQ3 SDAT4/ACFD04/AATAD04/PQ4 SDAT5/ACFD05/AATAD05/PQ5 SDAT6/ACFD06/AATAD06/PQ6 SDAT7/ACFD07/AATAD07/PQ7 SBSY/ACFD08/AATAD08/PP0 SCD/ACFD09/AATAD09/PP1 SCE/ACFD10/AATAD10/PP2 SWP/ACFD11/AATA11/PP3 SCLE/ACFD12/AATA12/PP4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76
PE5/MODA/IPIPE0 PE4/ECLK PE3/LSTRB/TAGLO PE2/R/W PE1/IRQ PE0/XIRQ RREF VSSA1 DMH DMF DPH DPF VDDA RPU VSSA EXTAL XTAL PR7/CFA10/IOC7 PR6/CFA09/IOC6 PR5/CFA08/IOC5 PR4/CFA07/IOC4 PR3/CFA06/TXD PR2/CFA05/RXD PR1/CFA04 PR0/CFA03
MC9S12UF32
100LQFP
75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51
PS7/CFRDY/ATAINTQ PS6/CFWE/ATADMARQ PS5/CFIORW/ATAIORW PS4/CFIORD/ATAIORD PS3/CFCE2/ATACS1 PS2/CFIOIS16 PS1/CFOE PS0/CFCE1/ATACS0 PU0/CFWAIT/ATAIORDY PU1/CFINPACK/ATADMACK PU2/CFREG PU3/CFA00/ATADA0 PU4/CFA01/ATADA1 PU5/CFA02/ATADA2 VDDX VSSX PA7/ADDR15/DATA15 PA6/ADDR14/DATA14 PA5/ADDR13/DATA13 PA4/ADDR12/DATA12 PA3/ADDR11/DATA11 PA2/ADDR10/DATA10 PA1/ADDR9/DATA9 PA0/ADDR8/DATA8 PB7/ADDR7/DATA7
Note: Not all pin functions are shown in the diagram. Please refer to sections 2-2 and 2-4 for details.
Figure 2-1 Pin Assignments in 100-pin LQFP
Freescale Semiconductor
SALE/ACFD13/AATA13/PP5 SWE/ACFD14/AATA14/PP6 SRE/ACFD15/AATA15/PP7 VDD3X VSS3X SDCMD/PM0 SDCLK/PM1 SDDATA0/PM2 SDDATA1/PM3 SDDATA2/PM4 SDDATA3/PM5 MSBS/PJ0 MSSDIO/PJ1 ROMCTL/MSSCLK/PJ2 IOC0/PT0 IOC1/PT1 IOC2/PT2 IOC3/PT3 ADDR0/DATA0/PB0 ADDR1/DATA1/PB1 ADDR2/DATA2/PB2 ADDR3/DATA3/PB3 ADDR4/DATA4/PB4 ADDR5/DATA5/PB5 ADDR6/DATA6/PB6
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
49
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Figure 2-2 shows the pin assignments for 64-pin option.
CFA9/MODB/IPIPE1/PE6 CFA10/NOACC/PE7 MODC/TAGHI/BKGD TEST RESET VSSR VDDR REF3V SDAT0/CFA0/ATADA0/PQ0 SDAT1/CFA1/ATADA1/PQ1 SDAT2/CFA2/ATADA2/PQ2 SDAT3/CFIORD/ATAIORD/PQ3 SDAT4/CFA4/ATADMACK/IOC4PQ4 SDAT5/CFA5//SDCMD/PQ5 SDAT6/CFA6/SDCLK/PQ6 SDAT7/CFA7/IOC7/PQ7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33
PE5/MODA/IPIPE0/CFA8 PE4/ECLK PE3/LSTRB/TAGLO/CFA3 PE2/R/W PE0/XIRQ RREF VSSA1 DMH DMF DPH DPF VDDA RPU VSSA EXTAL XTAL
MC9S12UF32
64 LQFP
PS7/CFRDY/ATAINTQ/MSSDIO PS6/CFWE/ATADMARQ/CSCLK PS5/TXD PS4/RXD PU0/CFWAIT/ATAIORDY/SCD VDDX VSSX PA7/ADDR15/DATA15/ATAD15/CFD15 PA6/ADDR14/DATA14/ATAD14/CFD14/MSBS PA5/ADDR13/DATA13/ATAD13/CFD13 PA4/ADDR12/DATA12/ATAD12/CFD12 PA3/ADDR11/DATA11/ATAD11/CFD11 PA2/ADDR10/DATA10/ATAD10/CFD10 PA1/ADDR9/DATA9/ATAD9/CFD9 PA0/ADDR8/DATA8/ATAD8/CFD8 PB7/ADDR7/DATA7/ATAD7/CFD7/IOC7
Note: Not all pin functions are shown in the diagram. Please refer to sections 2-3 and 2-5 for details.
Figure 2-2 Pin Assignments in 64-pin LQFP
50
VDD3X VSS3X SDDATA1/SCE/CFINPACK/IOC2PM3 SDDATA2/SBSY/CFIOIS16/IOC3/PM4 ATAIOWR/SALE/CFIOWR/PJ0 ATACS0/SCLE/CFCE1/PJ1 ATACS1/SWP/CFCE2/ROMCTL/PJ2 SDDATA0/SRE/CFREG/IOC0/PT0 SDDATA3/SWE/CFOE/IOC1/PT1 ATAD0/CFD0/IOC0/ADDR0/DATA0/PB0 ATAD1/CFD1/IOC1/ADDR1/DATA1/PB1 ATAD2/CFD2/IOC2/ADDR2/DATA2/PB2 ATAD3/CFD3/IOC3/ADDR3/DATA3/PB3 ATAD4/CFD4/IOC4/ADDR4/DATA4/PB4 ATAD5/CFD5/IOC5/ADDR5/DATA5/PB5 ATAD6/CFD6/IOC6/ADDR6/DATA6/PB6
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.2 Signal Properties Summary for 100-pin Package
Table 2-3 100-pin Signal Properties
Internal Pull Pin Name Pin Name Pin Name Pin Name Supply Resistor Function Function Function Function Rail 1 2 3 4 CTRL Reset State
EXTAL XTAL TEST1 VREGEN PE7 PE6 PE5 PE4 PE3 PE2 PE1 PE0 PA[7:0] -- -- -- -- NOACC IPIPE1 IPIPE0 ECLK LSTRB R/W IRQ XIRQ ADDR[15:8] /DATA[15:8] ADDR[7:0]/ DATA[7:0] -- MODC -- -- -- -- -- -- -- -- -- -- -- -- MODB MODA -- TAGLO -- -- -- CFD[15:8] -- -- -- -- -- -- -- -- -- -- -- -- ATAD[15:8] VDDR VDDR VDDR VDDR VDDR VDDR VDDR VDDR VDDR VDDX Always up NA NA NA NA PUCR NA NA NA NA Up
Description
Oscillator pins Test pin only Voltage Regulator Enable Input Port E I/O pin; CPU no access Port E I/O pin; pipe status; mode selection Port E I/O pin; pipe status; mode selection Port E I/O pin; bus clock output Port E I/O pin; low strobe; tag signal low Port E I/O pin; R/W in expanded modes Port E input; external interrupt pin Port E input; non-maskable interrupt pin
While RESET is low: Down While RESET is low: Down PUCR PUCR PUCR Up Up Up
Port A I/O pin; multiplexed PUCR Disabled address/data; CFHC Data; ATA5HC Data Port B I/O pin; multiplexed PUCR Disabled address/data; CFHC Data; ATA5HC Data NA Always up NA NA NA NA NA NA NA NA Up NA NA NA NA NA NA NA External reset pin Background debug; mode pin; tag signal high USB D+ pull up resistor termination External bias resistor USB full speed D+ data line USB high speed D+ data line USB full speed D- data line USB high speed D- data line 3.3V regulator reference for driving external NMOS regulator, default output 0V 5V power-off signal for turning off 5V supply by using external PMOS switch, default output VDDR 3V power-off signal for turning off 5V supply by using external PMOS switch, default output VDDR
PB[7:0] RESET BKGD RPU RREF DPF DPH DMF DMH REF3V
CFD[7:0] -- TAGHI -- -- -- -- -- -- --
ATAD[7:0]] -- -- -- -- -- -- -- -- --
VDDX VDDR VDDR VDDA VDDA VDDA VDDA VDDA VDDA VDDR
PWROFF5V
--
--
--
VDDR
NA
NA
PWROFF3V
--
--
--
VDDR
NA
NA
Freescale Semiconductor
51
System on a Chip Guide -- 9S12UF32DGV1/D V01.05 Internal Pull Pin Name Pin Name Pin Name Pin Name Supply Resistor Function Function Function Function Rail 1 2 3 4 CTRL Reset State
PJ0 PJ1 PJ23 PM5 PM4 PM3 PM2 PM1 PM0 MSBS MSSDIO MSSCLK SDDATA3 SDDATA2 SDDATA1 SDDATA0 SDCLK SDCMD CFIORW2 CFCE12 CFCE22 CFIORD2 CFIOIS162 CFINPACK2 CFWAIT2 CFREG2 CFRDY/ IREQ2 ACFD15 -- -- -- -- -- -- -- -- -- VDD3X VDD3X VDD3X VDD3X VDD3X VDD3X VDD3X VDD3X VDD3X
Description
PERJ/ Port J I/O Pin; MSHC Bus State; Disabled PPSJ CFHC IOWR signal PERJ/ Port J I/O Pin; MSHC Serial Data Disabled PPSJ I/O; CFHC CE1 signal PERJ/ Port J I/O Pin; MSHC Serial Clock; Disabled PPSJ CFHC CE2 signal PERM Port M I/O Pin; SDHC Command Disabled /PPSM line; CFHC CFIORD signal PERM Port M I/O Pin; SDHC Clock line; Disabled /PPSM CFHC IOIS16 signal PERM Port M I/O Pin; SDHC data line; Disabled /PPSM CFHC INPACK signal PERM Port M I/O Pin; SDHC data line; Disabled /PPSM CFHC CFWAIT signal PERM Port M I/O Pin; SDHC data line; Disabled /PPSM CFHC REG signal PERM Port M I/O Pin; SDHC data line; Disabled CFHC RDY/IREQ signal /PPSM Port P I/O Pins; SMHC SRE; PERP/ Disabled Alternate CFHC, ATA5HC Data PPSP lines Port P I/O Pins; SMHC SWE; PERP/ Disabled Alternate CFHC, ATA5HC Data PPSP lines Port P I/O Pins; SMHC SALE; PERP/ Disabled Alternate CFHC, ATA5HC Data PPSP lines Port P I/O Pins; SMHC SCLE; PERP/ Disabled Alternate CFHC, ATA5HC Data PPSP lines Port P I/O Pins; SMHC SWP; PERP/ Disabled Alternate CFHC, ATA5HC Data PPSP lines Port P I/O Pins; SMHC SCE; PERP/ Disabled Alternate CFHC, ATA5HC Data PPSP lines Port P I/O Pins; SMHC SCD; PERP/ Disabled Alternate CFHC, ATA5HC Data PPSP lines Port P I/O Pins; SMHC SBSY; PERP/ Disabled Alternate CFHC, ATA5HC Data PPSP lines Port Q I/O Pins; SMHC Data lines, PERQ/ Disabled Alternate CFHC, ATA5HC Data PPSQ lines PERR Port R I/O Pins; CFHC address Disabled PPSR lines
PP7
SRE
AATAD15
VDD3X
PP6
SWE
ACFD14
AATAD14
VDD3X
PP5
SALE
ACFD13
AATAD13
VDD3X
PP4
SCLE
ACFD12
AATAD12
VDD3X
PP3
SWP
ACFD11
AATAD11
VDD3X
PP2
SCE
ACFD10
AATAD10
VDD3X
PP1
SCD
ACFD9
AATAD9
VDD3X
PP0
SBSY
ACFD8
AATAD8
VDD3X
PQ[7:0] PR[1:0]
SDAT[7:0] CFA[4:3]
ACFD[7:0] --
AATAD[7:0] VDD3X -- VDDX
52
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05 Internal Pull Pin Name Pin Name Pin Name Pin Name Supply Resistor Function Function Function Function Rail 1 2 3 4 CTRL Reset State
PR[2] PR[3] PR[7:4] PS7 PS6 PS5 PS4 PS3 PS2 PS1 PS0 PT[0:2] PT[3] PU5 PU4 PU3 PU2 PU1 PU0 CFA[5] CFA[6] CFA[10:7] CFRDY/ IREQ CFWE CFIOWR CFIORD CFCE2 CFIOIS16 CFOE CFCE1 IOC[0:2] IOC[3] CFA2 CFA1 CFA0 CFREG CFINPACK CFWAIT RXD TXD IOC[7:4] ATAINTQ
ATADMARQ
Description
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
VDDX VDDX VDDX VDDX VDDX VDDX VDDX VDDX VDDX VDDX VDDX VDD3X VDD3X VDDX VDDX VDDX VDDX VDDX VDDX
PERR Port R I/O Pin; CFHC address line, Disabled PPSR SCI RXD PERR Port R I/O Pin; CFHC address line, Disabled PPSR SCI TXD PERR Port R I/O Pins; CFHC address Disabled PPSR lines, Timer Channel 4 to 7 PERS/ Port S I/O Pin; CFHC RDYIREQ Disabled PPSS signal; ATA INTQ signal PERS/ Port S I/O Pin; CFHC WE signal; Disabled PPSS ATA DMARQ signal PERS/ Port S I/O Pin; CFHC IOWR signal; Disabled PPSS ATA IOWR signal PERS/ Port S I/O Pin; CFHC IORD signal; Disabled PPSS ATA IORD signal Port S I/O Pin; CFHC CE2 signal; PERS/ Disabled PPSS ATA CS2 signal PERS/ Port S I/O Pin; CFHC IOIS16 Disabled PPSS signal PERS/ Disabled Port S I/O Pin; CFHC OE signal PPSS PERS/ Port S I/O Pin; CFHC CE1 signal; Disabled PPSS ATA CS0 signal PERT/ Port T I/O Pins; Timer channels 0 Disabled PPST to 2; CFHC address line PERT/ Port T I/O Pins; Timer channels 3; Disabled PPST CFHCWE signal PERU/ Port U I/O Pins; CFHC Address Disabled PPSU signal; ATA Address signal PERU/ Port U I/O Pins; CFHC Address Disabled PPSU signal; ATA Address signal Port U I/O Pins; CFHC Address PERU/ Disabled PPSU signal; ATA Address signal PERU/ Disabled Port U I/O Pins; CFHC REG signal PPSU PERU/ Port U I/O Pins; CFHC INPACK Disabled PPSU signal; ATA DMACK signal PERU/ Port U I/O Pins; CFHC WAIT Disabled PPSU signal; ATA IORDY signal
ATAIOWR ATAIORD ATACS1 -- -- ATACS0 CFA[0:2]2 CFWE2 ATADA2 ATADA1 ATADA0 -- ATADMACK ATAIORDY
NOTES: 1. This pin must be tied to VSS in Application 2. CFHC module port routing when bit 4 of MODRR is set to 1. 3. PJ2 is used as the ROMCTL signal during reset.
Freescale Semiconductor
53
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.3 Signal Properties Summary for 64-pin Package
Table 2-4 64-pin Signal Properties
Internal Pull Pin Name Pin Name Pin Name Pin Name Pin Name Supply Resistor Function Function Function Function Function Rail 1 2 3 4 5 CTRL Reset State
EXTAL XTAL TEST1 PE7 PE6 PE5 PE4 PE3 PE2 PE0 PA7 -- -- -- NOACC IPIPE1 IPIPE0 ECLK LSTRB R/W XIRQ ADDR15/ DATA15 ADDR14/ DATA14 -- -- -- -- MODB MODA -- TAGLO -- -- CFD15 -- -- -- CFA10 CFA9 CFA8 -- CFA3 -- -- ATAD15 -- -- -- -- -- -- -- -- -- -- -- VDDR VDDR VDDR VDDR VDDR VDDR VDDR VDDX NA NA NA PUCR NA NA NA Up
Description
Oscillator pins Test pin only Port E I/O pin; CPU no access; CFHC Address. Port E I/O pin; pipe status; mode selection; CFHC Address. Port E I/O pin; pipe status; mode selection; CFHC Address. Port E I/O pin; bus clock output Port E I/O pin; low strobe; tag signal low; CFHC Address. Port E I/O pin; R/W in expanded modes Port E input; non-maskable interrupt pin
While RESET is low: Down While RESET is low: Down PUCR PUCR PUCR Up Up Up
Always up
Port A I/O pin; multiplexed PUCR Disabled address/data; CFHC Data; ATA5HC Data. Port A I/O pin; multiplexed address/data; CFHC Data; PUCR Disabled ATA5HC Data; MSHC Bus State signal. Port A I/O pin; multiplexed address/data; CFHC Data; PUCR Disabled ATA5HC Data; SDHC SDDATA3 signal. Port A I/O pin; multiplexed address/data; CFHC Data; PUCR Disabled ATA5HC Data; SDHC SDDATA2 signal. Port A I/O pin; multiplexed address/data; CFHC Data; PUCR Disabled ATA5HC Data; SDHC SDDATA1 signal. Port A I/O pin; multiplexed address/data; CFHC Data; PUCR Disabled ATA5HC Data; SDHC SDDATA0 signal. Port A I/O pin; multiplexed address/data; CFHC Data; PUCR Disabled ATA5HC Data; SDHC SDCLK signal.
PA6
CFD14
ATAD14
MSBS
VDDX
PA5
ADDR13/ DATA13
CFD13
ATAD13
SDDATA3
VDDX
PA4
ADDR12/ DATA12
CFD12
ATAD12
SDDATA2
VDDX
PA3
ADDR11/ DATA11
CFD11
ATAD11
SDDATA1
VDDX
PA2
ADDR10/ DATA10
CFD10
ATAD10
SDDATA0
VDDX
PA1
ADDR9/ DATA9
CFD9
ATAD9
SDCLK
VDDX
54
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05 Internal Pull Pin Name Pin Name Pin Name Pin Name Pin Name Supply Resistor Function Function Function Function Function Rail 1 2 3 4 5 CTRL Reset State
PA0 ADDR8/ DATA8 ADDR[7:0]/ DATA[7:0] -- MODC -- -- -- -- -- -- -- CFD8 ATAD8 SDCMD VDDX
Description
Port A I/O pin; multiplexed address/data; CFHC Data; PUCR Disabled ATA5HC Data; SDHC SDCMD signal. Port B I/O pin; multiplexed PUCR Disabled address/data; CFHC Data; ATA5HC Data; Timer channels NA Always up NA NA NA NA NA NA NA NA Up NA NA NA NA NA NA NA External reset pin Background debug; mode pin; tag signal high USB D+ pull up resistor termination External bias resistor USB full speed D+ data line USB high speed D+ data line USB full speed D- data line USB high speed D- data line 3.3V regulator reference for driving external NMOS regulator, default output 0V
PB[7:0] RESET BKGD RPU RREF DPF DPH DMF DMH REF3V
CFD[7:0] -- TAGHI -- -- -- -- -- -- --
ATAD[7:0] -- -- -- -- -- -- -- -- --
IOC[7:0] -- -- -- -- -- -- -- -- --
VDDX VDDR VDDR VDDA VDDA VDDA VDDA VDDA VDDA VDDR
PJ0
SALE
CFIORW
ATAIOWR
--
VDD3X
Port J I/O Pin; SMHC SALE PERJ/ Disabled signal; CFHC IOWR signal; PPSJ ATA5HC IOWR signal. Port J I/O Pin; SMHC SCLE PERJ/ Disabled signal; CFHC CE1 signal; PPSJ ATA5HC CS0 signal. Port J I/O Pin; SMHC SWP PERJ/ Disabled signal; CFHC CE2 signal; PPSJ ATA5HC CS1 signal.
PJ1
SCLE
CFCE1
ATACS0
--
VDD3X
PJ22
SWP
CFCE2
ATACS1
--
VDD3X
PM4
SBSY
CFIOIS16
SDDATA2
IOC3
Port M I/O Pin; SMHC SBSY PERM/ signal; SDHC data line; CFHC Disabled VDD3X PPSM CFIOIS16 signal; Timer Channel. Port M I/O Pin; SMHC SCE PERM/ signal; SDHC data line; CFHC VDD3X Disabled PPSM CFINPACK signal, Timer Channel. VDD3X Port Q I/O Pins; SMHC Data PERQ/ Disabled line; CFHC address line; Timer PPSQ channel Port Q I/O Pins; SMHC Data PERQ/ Disabled line; CFHC address line; Timer PPSQ channel; SDHC Clock signal.
PM3
SCE
CFINPACK
SDDATA1
IOC2
PQ7
SDAT7
CFA7
IOC7
--
PQ6
SDAT6
CFA6
IOC6
SDCLK
VDD3X
PQ5
SDAT5
CFA5
IOC5
SDCMD
Port Q I/O Pins; SMHC Data PERQ/ line; CFHC address line; Timer VDD3X Disabled PPSQ channel; SDHC Command signal.
Freescale Semiconductor
55
System on a Chip Guide -- 9S12UF32DGV1/D V01.05 Internal Pull Pin Name Pin Name Pin Name Pin Name Pin Name Supply Resistor Function Function Function Function Function Rail 1 2 3 4 5 CTRL Reset State
PQ4 SDAT4 CFA4 ATADMACK IOC4
Description
Port Q I/O Pins; SMHC Data PERQ/ line; CFHC address line; VDD3X Disabled PPSQ ATA5HC DMACK signal; Timer Channel VDD3X Port Q I/O Pins; SMHC Data line, PERQ/ Disabled CFHC CFIORD signal; ATA5HC PPSQ ATAIORD signal Port Q I/O Pins; SMHC Data PERQ/ Disabled line; CFHC Address signal; ATA PPSQ Address signal Port Q I/O Pins; SMHC Data PERQ/ Disabled line; CFHC Address signal; ATA PPSQ Address signal Port Q I/O Pins; SMHC Data PERQ/ Disabled line; CFHC Address signal; ATA PPSQ Address signal Port S I/O Pin; CFHC RDYIREQ PERS/ Disabled signal; ATA INTQ signal; MSHC PPSS serial data I/O. Port S I/O Pin; CFHC WE signal; PERS/ Disabled ATA DMARQ signal; MSHC PPSS serial clock. PERS/ Disabled Port S I/O Pin; SCI TXD. PPSS PERS/ Disabled Port S I/O Pin; SCI RXD. PPSS Port T I/O Pins; SMHC SWE PERT/ Disabled signal; CFHC CFOE signal; PPST SDHC data; Timer channel; Port T I/O Pins; SMHC SRE PERT/ Disabled signal; CFHC CFREG signal; PPST SDHC data; Timer channel; Port U I/O Pins; CFHC WAIT PERU/ Disabled signal; ATA IORDY signal; SMHC PPSU SCD signal.
PQ3
SDAT3
CFIORD
ATAIORD
--
PQ2
SDAT2
CFA2
ATADA2
--
VDD3X
PQ1
SDAT1
CFA1
ATADA1
--
VDD3X
PQ0
SDAT0
CFA0 CFRDY/ IREQ CFWE -- -- CFOE
ATADA0
--
VDD3X
PS7
MSSDIO
ATAINTQ
--
VDDX
PS6 PS5 PS4 PT1
MSSCLK TXD RXD SWE
ATADMARQ
-- -- -- IOC1
VDDX VDDX VDDX VDD3X
-- -- SDDATA3
PT0
SRE
CFREG
SDDATA0
IOC0
VDD3X
PU0
SCD
CFWAIT
ATAIORDY
--
VDDX
NOTES: 1. This pin must be tied to VSS in Application 2. PJ2 is used as the ROMCTL signal during reset.
56
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.4 Detailed Signal Descriptions for 100-pin package
2.4.1 EXTAL, XTAL -- Oscillator Pins
EXTAL and XTAL are the external clock and crystal driver pins. On reset all the device clocks are derived from the EXTAL input frequency. XTAL is the crystal output.
2.4.2 RESET -- External Reset Pin
RESET is an active low bidirectional control signal that acts as an input to initialize the MCU to a known start-up state. It also acts as an open-drain output to indicate that an internal failure has been detected in the COP watchdog circuit. External circuitry connected to the RESET pin should not include a large capacitance that would interfere with the ability of this signal to rise to a valid logic one within 32 ECLK cycles after the low drive is released. Upon detection of any reset, an internal circuit drives the RESET pin low and a clocked reset sequence controls when the MCU can begin normal processing The RESET pin includes an internal pull up device.
2.4.3 TEST -- Test Pin
The TEST pin is reserved for test and must be tied to VSS in all applications.
2.4.4 VREGEN -- Voltage Regulator Enable Pin
This input only pin enables or disables the on-chip voltage regulator. This pin should be connected to VDDR in normal application of the device.
2.4.5 BKGD / TAGHI / MODC -- Background Debug, Tag High & Mode Pin
The BKGD / TAGHI / MODC pin is used as a pseudo-open-drain pin for the background debug communication. It is used as a MCU operating mode select pin during reset. The state of this pin is latched to the MODC bit at the rising edge of RESET. In MCU expanded modes of operation, when instruction tagging is on, an input low on this pin during the falling edge of E-clock tags the high half of the instruction word being read into the instruction queue. This pin always has an internal pull up.
2.4.6 RPU -- USB D+ pull up resistor termination
RPU is an analog input for the USB physical layer module. Refer to USB20D6E2F block guide for further information.
2.4.7 RREF -- External bias resistor
RREF is an analog input for the USB physical layer module. Refer to USB20D6E2F block guide for further information.
Freescale Semiconductor
57
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.4.8 DPF - USB Full Speed D+ data line
DPF is the D+ analog input output line for full speed data communication in the USB physical layer module. This line is also used for D+ termination during high speed operation. Refer to USB20D6E2F block guide for further information.
2.4.9 DPH - USB High Speed D+ data line
DPH is the D+ analog input output line for high speed data communication in the USB physical layer module. This line will be high impedance during full speed operation. Refer to USB20D6E2F block guide for further information.
2.4.10 DMF - USB Full Speed D- data line
DMF is the D- analog input output line for full speed data communication in the USB physical layer module. This line is also used for D+ termination during high speed operation. Refer to USB20D6E2F block guide for further information.
2.4.11 DMH - USB High Speed D- data line
DMH is the D- analog input output line for high speed data communication in the USB physical layer module. This line will be high impedance during full speed operation. Refer to USB20D6E2F block guide for further information.
2.4.12 PWROFF5V - power off 5V supply
PWROFF5V is used for turning off 5V supply to external chips or memory card in conjunction with an external PMOS device, this signal is controlled by CFPMR register in CFHC module. Refer to CFHC block guide for further information.
2.4.13 PWROFF3V - power off 3V supply
PWROFF3V is used for turning off 3V supply to external chips or memory card in conjunction with an external PMOS device, this signal is controlled by CFPMR register in CFHC module. Refer to CFHC block guide for further information.
2.4.14 REF3V - 3.3V reference for external regulator
REF3V a regulator reference for driving an external NMOS device to provide the system with a regulated 3.3V supply. The feedback path for the REF3V is the VDD3X supply pin. Refer to VREG_U block guide for further information.
2.4.15 PA[7:0] / ADDR[15:8] / DATA[15:8] / CFD[15:8] / ATAD[15:8] -- Port A
58
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
I/O Pins
PA[7:0] are general purpose input or output pins. In MCU expanded modes of operation, these pins are used for the multiplexed external address and data bus. In single chip mode, this port can be configured as data bus for CFHC or ATA5HC. Refer to CFHC and ATA5HC block guide for further information.
2.4.16 PB[7:0] / ADDR[7:0] / DATA[7:0] / CFD[7:0] / ATAD[7:0] -- Port B I/O Pins
PB[7:0] are general purpose input or output pins. In MCU expanded modes of operation, these pins are used for the multiplexed external address and data bus. In single chip mode, this port can be configured as data bus for CFHC or ATA5HC. Refer to CFHC and ATA5HC block guide for further information.
2.4.17 PE7 / NOACC -- Port E I/O Pin 7
PE7 is a general purpose input or output pin. During MCU expanded modes of operation, the NOACC signal, when enabled, is used to indicate that the current bus cycle is an unused or free cycle. This signal will assert when the CPU is not using the bus.
2.4.18 PE6 / MODB / IPIPE1 -- Port E I/O Pin 6
PE6 is a general purpose input or output pin. It is used as a MCU operating mode select pin during reset. The state of this pin is latched to the MODB bit at the rising edge of RESET. This pin is shared with the instruction queue tracking signal IPIPE1. This pin is an input with a pull-down device which is only active when RESET is low.
2.4.19 PE5 / MODA / IPIPE0 -- Port E I/O Pin 5
PE5 is a general purpose input or output pin. It is used as a MCU operating mode select pin during reset. The state of this pin is latched to the MODA bit at the rising edge of RESET. This pin is shared with the instruction queue tracking signal IPIPE0. This pin is an input with a pull-down device which is only active when RESET is low.
2.4.20 PE4 / ECLK-- Port E I/O Pin 4 / E-Clock Output
PE4 is a general purpose input or output pin. It can also be configured as the output connection for the internal bus clock (ECLK). ECLK is used to demultiplex the address and data in expanded modes and is used as a timing reference. The ECLK frequency is equal to 1/2 the crystal frequency out of reset. The ECLK output function depends upon the settings of the NECLK bit in the PEAR register, the IVIS bit in the MODE register and the ESTR bit in the EBICTL register. All clocks, including the ECLK, are halted when the MCU is in STOP mode. It is possible to configure the MCU to interface to slow external memory. ECLK can be stretched for such accesses. The PE4 pin is initially configured as ECLK output with stretch in all expanded modes. Reference the MISC register (EXSTR[1:0] bits) for more information. In normal expanded narrow mode, the ECLK is available for use in external select decode logic or as a constant speed clock for use in the external application system.
Freescale Semiconductor
59
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.4.21 PE3 / LSTRB / TAGLO -- Port E I/O Pin 3 / Low-Byte Strobe (LSTRB)
PE3 can be used as a general-purpose I/O in all modes and is an input with an active pull-up out of reset. PE3 can also be configured as a Low-Byte Strobe (LSTRB). The LSTRB signal is used in write operations, so external low byte writes will not be possible until this function is enabled. LSTRB can be enabled by setting the LSTRE bit in the PEAR register. In Expanded Wide and Emulation Narrow modes, and when BDM tagging is enabled, the LSTRB function is multiplexed with the TAGLO function. When enabled a logic zero on the TAGLO pin at the falling edge of ECLK will tag the low byte of an instruction word being read into the instruction queue.
2.4.22 PE2 / R/W -- Port E I/O Pin 2 / Read/Write
PE2 can be used as a general-purpose I/O in all modes and is configured an input with an active pull-up out of reset. If the read/write function is required it should be enabled by setting the RDWE bit in the PEAR register. External writes will not be possible until the read/write function is enabled.
2.4.23 PE1 / IRQ -- Port E input Pin 1 / Maskable Interrupt Pin
PE1 is always an input and can always be read. The PE1 pin is also the IRQ input used for requesting an asynchronous interrupt to the MCU. During reset, the I bit in the condition code register (CCR) is set and any IRQ interrupt is masked until software enables it by clearing the I bit. The IRQ is software programmable to either falling edge-sensitive triggering or level-sensitive triggering based on the setting of the IRQE bit in the IRQCR register. The IRQ is always enabled and configured to level-sensitive triggering out of reset. It can be disabled by clearing IRQEN bit in the IRQCR register. There is an active pull-up on this pin while in reset and immediately out of reset. The pull-up can be turned off by clearing PUPEE in the PUCR register.
2.4.24 PE0 / XIRQ -- Port E input Pin 0 / Non Maskable Interrupt Pin
PE0 is always an input and can always be read. The PE0 pin is also the XIRQ input for requesting a non-maskable asynchronous interrupt to the MCU. During reset, the X bit in the condition code register (CCR) is set and any XIRQ interrupt is masked until MCU software enables it by clearing the X bit. Because the XIRQ input is level sensitive triggered, it can be connected to a multiple-source wired-OR network. There is an active pull-up on this pin while in reset and immediately out of reset. The pull-up can be turned off by clearing PUPEE in the PUCR register.
2.4.25 PJ2 / MSSCLK/ROMCTL - Port J I/O Pin 2
PJ2 is a general purpose input or output pin. In expanded modes the PJ2 pin can be used to determine the reset state of the ROMON bit in the MISC register. At the rising edge of RESET, the state of the PJ2 pin is latched to the ROMON bit. When the MSHC module is enabled it becomes the serial clock line (MSSCLK) for the MSHC module. While in reset and immediately out of reset the PJ2 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the MSHC Block Guide for information about pin configurations.
60
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.4.26 PJ1 / MSSDIO - Port J I/O Pin 1
PJ1 is a general purpose input or output pin. When the MSHC module is enabled it becomes the serial data line (MSSDIO) for the MSHC module. While in reset and immediately out of reset the PJ1 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the MSHC Block Guide for information about pin configurations.
2.4.27 PJ0 / MSBS - Port J I/O Pin 0
PJ0 is a general purpose input or output pin. When the MSHC module is enabled it becomes the bus state line (MSBS) for the MSHC module. While in reset and immediately out of reset the PJ0 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the MSHC Block Guide for information about pin configurations.
2.4.28 PM[5:2] / SDDATA[3:0] - Port M I/O Pin [5:2]
PM[5:2] are general purpose input or output pins. When the SDHC module is enabled they become the data line (SDDATA[3:0]) for the SDHC module. While in reset and immediately out of reset the PM[5:2] pins are configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the SDHC Block Guide for information about pin configurations.
2.4.29 PM1 / SDCLK -- Port M I/O Pin 1
PM1 is a general purpose input or output pin. When the SDHC module is enabled the PM1 pin is configured as the SDCLK of the SDHC module. While in reset and immediately out of reset the PM1 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the SDHC Block Guide for information about pin configurations.
2.4.30 PM0 / SDCMD -- Port M I/O Pin 0
PM0 is a general purpose input or output pin. When the SDHC module is enabled the PM0 pin is configured as the SDCMD of the SDHC module. While in reset and immediately out of reset the PM0 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the SDHC Block Guide for information about pin configurations.
2.4.31 PP7 / SRE / ACFD15 / AATAD15-- Port P I/O Pin 7
PP7 are general purpose input or output pin. When enabled in the SMHC module, the PP7 pin becomes the read enable pin, SRE. When the SMHC is not enabled, it can be configured in the PIM module to become the alternate data pins for CFHC or ATA5HC in place of PA7. While in reset and immediately out of reset PP7 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the MSHC Block Guide for information about pin configurations.
Freescale Semiconductor
61
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.4.32 PP6 / SWE / ACFD14 / AATAD14-- Port P I/O Pin 6
PP6 are general purpose input or output pin. When enabled in the SMHC module, the PP6 pin becomes the write enable pin, SWE. When the SMHC is not enabled, it can be configured in the PIM module to become the alternate data pins for CFHC or ATA5HC in place of PA6. While in reset and immediately out of reset PP6 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the MSHC Block Guide for information about pin configurations.
2.4.33 PP5 / SALE / ACFD13 / AATAD13-- Port P I/O Pin 5
PP5 are general purpose input or output pin. When enabled in the SMHC module, the PP5 pin becomes the address latch enable pin, SALE. When the SMHC is not enabled, it can be configured in the PIM module to become the alternate data pins for CFHC or ATA5HC in place of PA5. While in reset and immediately out of reset PP5 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the MSHC Block Guide for information about pin configurations.
2.4.34 PP4 / SCLE / ACFD12 / AATAD12-- Port P I/O Pin 4
PP4 are general purpose input or output pin. When enabled in the SMHC module, the PP4 pin becomes the command latch enable pin, SCLE. When the SMHC is not enabled, it can be configured in the PIM module to become the alternate data pins for CFHC or ATA5HC in place of PA4. While in reset and immediately out of reset PP4 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the MSHC Block Guide for information about pin configurations.
2.4.35 PP3 / SWP / ACFD11 / AATAD11-- Port P I/O Pin 3
PP3 are general purpose input or output pin. When enabled in the SMHC module, the PP3 pin becomes the write protect pin, SWP. When the SMHC is not enabled, it can be configured in the PIM module to become the alternate data pins for CFHC or ATA5HC in place of PA3. While in reset and immediately out of reset PP3 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the MSHC Block Guide for information about pin configurations.
2.4.36 PP2 / SCE / ACFD10 / AATAD10-- Port P I/O Pin 2
PP2 are general purpose input or output pin. When enabled in the SMHC module, the PP2 pin becomes the chip enable pin, SCE. When the SMHC is not enabled, it can be configured in the PIM module to become the alternate data pins for CFHC or ATA5HC in place of PA2. While in reset and immediately out of reset PP2 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the MSHC Block Guide for information about pin configurations.
62
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.4.37 PP1 / SCD / ACFD9 / AATAD9-- Port P I/O Pin 1
PP1 are general purpose input or output pin. When enabled in the SMHC module, the PP1 pin becomes the card detect pin, SCD. When the SMHC is not enabled, it can be configured in the PIM module to become the alternate data pins for CFHC or ATA5HC in place of PA1. While in reset and immediately out of reset PP1 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the MSHC Block Guide for information about pin configurations.
2.4.38 PP0 / SBSY / ACFD8 / AATAD8-- Port P I/O Pin 0
PP0 are general purpose input or output pin. When enabled in the SMHC module, the PP0 pin becomes the busy pin, SBSY. When the SMHC is not enabled, it can be configured in the PIM module to become the alternate data pins for CFHC or ATA5HC in place of PA0. While in reset and immediately out of reset PP0 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the MSHC Block Guide for information about pin configurations.
2.4.39 PQ[7:0] / SDAT[7:0] / ACFD[7:0] / AATAD[7:0]-- Port Q I/O Pins [7:0]
PQ[7:0] are general purpose input or output pins. When enabled in the SMHC module, the PQ[7:0] pins become the Smartmedia Data pins, SDAT[7:0]. When the SMHC is not enabled, it can be configured in the PIM module to become the alternate data pins for CFHC or ATA5HC in place of PB[7:0]. While in reset and immediately out of reset PQ[7:0] pins are configured as high impedance input pins. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the MSHC Block Guide for information about pin configurations.
2.4.40 PR[1:0] / CFA[4:3] -- Port R I/O Pins [1:0]
PR[1:0] are general purpose input or output pins. When enabled in the CFHC module, the PR[1:0] pins become the Compact Flash address pins, CFA[4:3]. Individual port pins can be configured as either CF address or general purpose I/O pins in CFHC module. While in reset and immediately out of reset PR[1:0] pins are configured as high impedance input pins. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the CFHC Block Guide for information about pin configurations.
2.4.41 PR[2] / CFA[5] / RXD -- Port R I/O Pins [2]
PR[2] is general purpose input or output pin. When enabled in the CFHC module, the PR[2] pin becomes the Compact Flash address pin, CFA[5]. This port pin can be configured as either CF address or general purpose I/O pin in CFHC module. When the CFHC module is not enabled or this pin is released, it can also be configured as the RXD pin when the SCI module is enabled. While in reset and immediately out of reset PR[2] pin is configured as high impedance input pin. Consult the Serial Communication Interface (SCI), the Port Integration Module (PIM) PIM_9UF32 Block Guide and the CFHC Block Guide for information about pin configurations.
Freescale Semiconductor
63
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.4.42 PR[3] / CFA[6] / TXD -- Port R I/O Pins [3]
PR[3] is general purpose input or output pin. When enabled in the CFHC module, the PR[3] pin becomes the Compact Flash address pin, CFA[6]. This port pin can be configured as either CF address or general purpose I/O pin in CFHC module. When the CFHC module is not enabled or this pin is released, it can also be configured as the TXD pin when the SCI module is enabled. While in reset and immediately out of reset PR[3] pin is configured as high impedance input pin. Consult the Serial Communication Interface (SCI), the Port Integration Module (PIM) PIM_9UF32 Block Guide and the CFHC Block Guide for information about pin configurations.
2.4.43 PR[7:4] / CFA[10:7] / IOC[7:4] -- Port R I/O Pins [7:4]
PR[7:4] are general purpose input or output pins. When enabled in the CFHC module, the PR[7:4] pins become the Compact Flash address pins, CFA[10:7]. Individual port pins can be configured as either CF address or released for other function in CFHC module. When the CFHC module is not enabled or these pins are released, they can also be configured as the TIM input capture or output compare pins IOC[7:4] when the TIM module is enabled. While in reset and immediately out of reset PR[7:4] pins are configured as high impedance input pins. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the TIM_16B8C Block Guide for information about pin configurations.
2.4.44 PS7 / CFRDY(CFIREQ) / ATAINTQ -- Port S I/O Pin 7
PS7 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PS7 becomes the compact flash ready or interrupt pin, CFRDY/IREQ, depending on the operating mode. When the CFHC is not enabled, it can be configured as the ATA interrupt pin, ATAINTQ, when the ATA5 host controller (ATA5HC) is enabled. While in reset and immediately out of reset the PS7 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
2.4.45 PS6 / CFWE / ATADMARQ -- Port S I/O Pin 6
PS6 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PS6 becomes the compact flash write enable pin, CFWE. When the CFHC is not enabled, it can be configured as the ATA DMA request pin, ATADMARQ, when the ATA5 host controller (ATA5HC) is enabled. While in reset and immediately out of reset the PS6 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
2.4.46 PS5 / CFIOWR / ATAIOWR -- Port S I/O Pin 5
PS5 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PS5 becomes the compact flash I/O write pin, CFIOWR. When the CFHC is not enabled, it can be configured as the ATA I/O write pin, ATAIOWR, when the ATA5 host controller (ATA5HC) is enabled. While in reset and immediately out of reset the PS5 pin is configured as a high impedance input pin.
64
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
2.4.47 PS4 / CFIORD / ATAIORD -- Port S I/O Pin 4
PS4 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PS4 becomes the compact flash I/O read pin, CFIORD. When the CFHC is not enabled, it can be configured as the ATA I/O read pin, ATAIORD, when the ATA5 host controller (ATA5HC) is enabled. While in reset and immediately out of reset the PS4 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
2.4.48 PS3 / CFCE2 / ATACS1 -- Port S I/O Pin 3
PS3 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PS3 becomes the compact flash chip enable 2 pin, CFCE2. When the CFHC is not enabled, it can be configured as the ATA chip select 1 pin, ATACS1, when the ATA5 host controller (ATA5HC) is enabled. While in reset and immediately out of reset the PS3 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
2.4.49 PS2 / CFIOIS16 -- Port S I/O Pin 2
PS2 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PS2 becomes the compact flash I/O select 16-bit pin, CFIOIS16. While in reset and immediately out of reset the PS2 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the CFHC Block Guide for information about pin configurations.
2.4.50 PS1 / CFOE -- Port S I/O Pin 1
PS1 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PS1 becomes the compact flash output enable pin, CFOE. While in reset and immediately out of reset the PS2 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the CFHC Block Guide for information about pin configurations.
2.4.51 PS0 / CFCE1 / ATACS0 -- Port S I/O Pin 0
PS0 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PS0 becomes the compact flash chip enable 1 pin, CFCE1. When the CFHC is not enabled, it can be configured as the ATA chip select 0 pin, ATACS0, when the ATA5 host controller (ATA5HC) is enabled. While in reset and immediately out of reset the PS0 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
Freescale Semiconductor
65
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.4.52 PT[3:0] / IOC[3:0]-- Port T I/O Pins [3:0]
PT[3:0] are general purpose input or output pins. When the Timer system (TIM) is enabled they can also be configured as the TIM input capture or output compare pins IOC[3:0]. While in reset and immediately out of reset the PT[3:0] pins are configured as a high impedance input pins. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the TIM_16B8C Block Guide for information about pin configurations.
2.4.53 PU[5:3] / CFA[2:0] / ATADA[2:0] -- Port U I/O Pins [5:3]
PU[5:3] are general purpose input or output pins. When the compact flash host controller (CFHC) is enabled PU[5:3] becomes the compact flash address pin, CFA[2:0]. When the CFHC is not enabled, it can be configured as the ATA address pin, ATADA[2:0], when the ATA5 host controller (ATA5HC) is enabled. While in reset and immediately out of reset the PU[5:3] pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
2.4.54 PU2 / CFREG -- Port U I/O Pin 2
PU2 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PU2 becomes the compact flash register select pin, CFREG. While in reset and immediately out of reset the PU2 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide and the CFHC Block Guide for information about pin configurations.
2.4.55 PU1 / CFINPACK / ATADMACK -- Port U I/O Pin 1
PU1 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PU1 becomes the compact flash input acknowledge pin, CFINPACK. When the CFHC is not enabled, it can be configured as the ATA DMA acknowledge pin, ATADMACK, when the ATA5 host controller (ATA5HC) is enabled. While in reset and immediately out of reset the PU1 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
2.4.56 PU0 / CFWAIT / ATAIORDY -- Port U I/O Pin 0
PU0 is a general purpose input or output pin. When the compact flash host controller (CFHC) is enabled PU0 becomes the compact flash wait pin, CFWAIT. When the CFHC is not enabled, it can be configured as the ATA I/O ready pin, ATAIORDY, when the ATA5 host controller (ATA5HC) is enabled. While in reset and immediately out of reset the PU0 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
66
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.5 Detailed Signal Descriptions for 64-pin package
2.5.1 EXTAL, XTAL -- Oscillator Pins
EXTAL and XTAL are the external clock and crystal driver pins. On reset all the device clocks are derived from the EXTAL input frequency. XTAL is the crystal output.
2.5.2 RESET -- External Reset Pin
RESET is an active low bidirectional control signal that acts as an input to initialize the MCU to a known start-up state. It also acts as an open-drain output to indicate that an internal failure has been detected in the COP watchdog circuit. External circuitry connected to the RESET pin should not include a large capacitance that would interfere with the ability of this signal to rise to a valid logic one within 32 ECLK cycles after the low drive is released. Upon detection of any reset, an internal circuit drives the RESET pin low and a clocked reset sequence controls when the MCU can begin normal processing The RESET pin includes an internal pull up device.
2.5.3 TEST -- Test Pin
The TEST pin is reserved for test and must be tied to VSS in all applications.
2.5.4 BKGD / TAGHI / MODC -- Background Debug, Tag High & Mode Pin
The BKGD / TAGHI / MODC pin is used as a pseudo-open-drain pin for the background debug communication. It is used as a MCU operating mode select pin during reset. The state of this pin is latched to the MODC bit at the rising edge of RESET. In MCU expanded modes of operation, when instruction tagging is on, an input low on this pin during the falling edge of E-clock tags the high half of the instruction word being read into the instruction queue. This pin always has an internal pull up.
2.5.5 RPU -- USB D+ pull up resistor termination
RPU is an analog input for the USB physical layer module. Refer to USB20D6E2F block guide for further information.
2.5.6 RREF -- External bias resistor
RREF is an analog input for the USB physical layer module. Refer to USB20D6E2F block guide for further information.
2.5.7 DPF - USB Full Speed D+ data line
DPF is the D+ analog input output line for full speed data communication in the USB physical layer module. This line is also used for D+ termination during high speed operation. Refer to USB20D6E2F block guide for further information.
Freescale Semiconductor
67
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.5.8 DPH - USB High Speed D+ data line
DPH is the D+ analog input output line for high speed data communication in the USB physical layer module. This line will be high impedance during full speed operation. Refer to USB20D6E2F block guide for further information.
2.5.9 DMF - USB Full Speed D- data line
DMF is the D- analog input output line for full speed data communication in the USB physical layer module. This line is also used for D+ termination during high speed operation. Refer to USB20D6E2F block guide for further information.
2.5.10 DMH - USB High Speed D- data line
DMH is the D- analog input output line for high speed data communication in the USB physical layer module. This line will be high impedance during full speed operation. Refer to USB20D6E2F block guide for further information.
2.5.11 REF3V - 3.3V reference for external regulator
REF3V a regulator reference for driving an external NMOS device to provide the system with a regulated 3.3V supply. The feedback path for the REF3V is the VDD3X supply pin. Refer to VREG_U block guide for further information.
2.5.12 PA[5:0] / ADDR[13:8] / DATA[13:8] / CFD[13:8] / ATAD[13:8] -- Port A I/O Pins
PA[5:0] are general purpose input or output pins. In MCU expanded modes of operation, these pins are used for the multiplexed external address and data bus. In single chip mode, this port can be configured as SDHC function, data bus for CFHC or ATA5HC. Refer to Table 2-2 for module routing information. For further functional information, do refer to SDHC, CFHC and ATA5HC block guide.
2.5.13 PA[6] / ADDR[14] / DATA[14] / CFD[14] / ATAD[14] / MSBS-- Port A I/O Pins
PA[6] is a general purpose input or output pin. In MCU expanded modes of operation, this pin is used for the multiplexed external address and data bus. In single chip mode, this port pin can be configured as MSBS signal for MSHC function, data bus pin for CFHC or ATA5HC. Refer to Table 2-2 for module routing information. For further functional information, do refer to MSHC, CFHC and ATA5HC block guide.
68
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.5.14 PA[7] / ADDR[15] / DATA[15] / CFD[15] / ATAD[15] -- Port A I/O Pins
PA[7] is a general purpose input or output pin. In MCU expanded modes of operation, this pin is used for the multiplexed external address and data bus. In single chip mode, this port can be configured as data bus pin for CFHC or ATA5HC. Refer to Table 2-2 for module routing information. For further functional information, do refer to CFHC and ATA5HC block guide.
2.5.15 PB[7:0] / ADDR[7:0] / DATA[7:0]/ CFD[7:0] / ATAD[7:0] / IOC[7:0] -- Port B I/O Pins
PB[7:0] are general purpose input or output pins. In MCU expanded modes of operation, these pins are used for the multiplexed external address and data bus. In single chip mode, this port can be configured as timer function or data bus for either CFHC or ATA5HC. Refer to Table 2-2 for module routing information. For further functional information, do refer to TIM_16B8C, CFHC and ATA5HC block guide.
2.5.16 PE7 / NOACC / CAF10-- Port E I/O Pin 7
PE7 is a general purpose input or output pin. During MCU expanded modes of operation, the NOACC signal, when enabled, is used to indicate that the current bus cycle is an unused or free cycle. In single chip mode, this port can be configured as address pin for CFHC. Refer to Table 2-2 for module routing information. For further functional information, do refer to CFHC block guide.
2.5.17 PE6 / MODB / IPIPE1 / CFA9 -- Port E I/O Pin 6
PE6 is a general purpose input or output pin. It is used as a MCU operating mode select pin during reset. The state of this pin is latched to the MODB bit at the rising edge of RESET. This pin is shared with the instruction queue tracking signal IPIPE1. This pin is an input with a pull-down device which is only active when RESET is low. In single chip mode, this port can be configured as address pin for CFHC. Refer to Table 2-2 for module routing information. For further functional information, do refer to CFHC block guide.
2.5.18 PE5 / MODA / IPIPE0 / CFA8 -- Port E I/O Pin 5
PE5 is a general purpose input or output pin. It is used as a MCU operating mode select pin during reset. The state of this pin is latched to the MODA bit at the rising edge of RESET. This pin is shared with the instruction queue tracking signal IPIPE0. This pin is an input with a pull-down device which is only active when RESET is low. In single chip mode, this port can be configured as address pin for CFHC. Refer to Table 2-2 for module routing information. For further functional information, do refer to CFHC block guide.
2.5.19 PE4 / ECLK-- Port E I/O Pin 4 / E-Clock Output
PE4 is a general purpose input or output pin. It can also be configured as the output connection for the internal bus clock (ECLK). ECLK is used to demultiplex the address and data in expanded modes and is
Freescale Semiconductor
69
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
used as a timing reference. The ECLK frequency is equal to 1/2 the crystal frequency out of reset. The ECLK output function depends upon the settings of the NECLK bit in the PEAR register, the IVIS bit in the MODE register and the ESTR bit in the EBICTL register. All clocks, including the ECLK, are halted when the MCU is in STOP mode. It is possible to configure the MCU to interface to slow external memory. ECLK can be stretched for such accesses. The PE4 pin is initially configured as ECLK output with stretch in all expanded modes. Reference the MISC register (EXSTR[1:0] bits) for more information. In normal expanded narrow mode, the ECLK is available for use in external select decode logic or as a constant speed clock for use in the external application system.
2.5.20 PE3 / LSTRB / TAGLO / CFA3 -- Port E I/O Pin 3 / Low-Byte Strobe (LSTRB)
PE3 can be used as a general-purpose I/O in all modes and is an input with an active pull-up out of reset. PE3 can also be configured as a Low-Byte Strobe (LSTRB). The LSTRB signal is used in write operations, so external low byte writes will not be possible until this function is enabled. LSTRB can be enabled by setting the LSTRE bit in the PEAR register. In Expanded Wide and Emulation Narrow modes, and when BDM tagging is enabled, the LSTRB function is multiplexed with the TAGLO function. When enabled a logic zero on the TAGLO pin at the falling edge of ECLK will tag the low byte of an instruction word being read into the instruction queue. In single chip mode, this port can be configured as address pin for CFHC. Refer to Table 2-2 for module routing information. For further functional information, do refer to CFHC block guide.
2.5.21 PE2 / R/W -- Port E I/O Pin 2 / Read/Write
PE2 can be used as a general-purpose I/O in all modes and is configured an input with an active pull-up out of reset. If the read/write function is required it should be enabled by setting the RDWE bit in the PEAR register. External writes will not be possible until the read/write function is enabled.
2.5.22 PE0 / XIRQ -- Port E input Pin 0 / Non Maskable Interrupt Pin
PE0 is always an input and can always be read. The PE0 pin is also the XIRQ input for requesting a non-maskable asynchronous interrupt to the MCU. During reset, the X bit in the condition code register (CCR) is set and any XIRQ interrupt is masked until MCU software enables it by clearing the X bit. Because the XIRQ input is level sensitive triggered, it can be connected to a multiple-source wired-OR network. There is an active pull-up on this pin while in reset and immediately out of reset. The pull-up can be turned off by clearing PUPEE in the PUCR register.
2.5.23 PJ2 / ATACS1 / SWP / CFCE2 / ROMCTL - Port J I/O Pin 2
PJ2 is a general purpose input or output pin. In expanded modes the PJ2 pin can be used to determine the reset state of the ROMON bit in the MISC register. At the rising edge of RESET, the state of the PJ2 pin is latched to the ROMON bit. This pin can be used as CFCE2 of CFHC module, ATACS1 of ATA5HC module or SWP of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset the PJ2 pin is configured as a high impedance input pin. Consult the Port
70
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the SMHC Block Guide for information about pin configurations.
2.5.24 PJ1 / ATACS0 / SCLE / CFCE1 - Port J I/O Pin 1
PJ1 is a general purpose input or output pin. This pin can be used as CFCE1 of CFHC module, ATACS0 of ATA5HC module or SCLE of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset the PJ1 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the SMHC Block Guide for information about pin configurations.
2.5.25 PJ0 / ATAIOWR / SALE / CFIOWR - Port J I/O Pin 0
PJ0 is a general purpose input or output pin. This pin can be used as CFIOWR of CFHC module, ATAIOWR of ATA5HC module or SALE of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset the PJ0 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the SMHC Block Guide for information about pin configurations.
2.5.26 PM4 / IOC3 / SDDATA2 / SBSY / CFIOIS16 -- Port M I/O Pin 4
PM4 is a general purpose input or output pin. This pin can be used as SDDATA2 of the SDHC module, CFIOIS16 of CFHC module, IOC3 of TIM_16B8C module or SBSY of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset the PM4 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the TIM_16B8C Block Guide and the SMHC Block Guide for information about pin configurations.
2.5.27 PM3 / IOC2 / SDDATA1 / SCE / CFINPACK -- Port M I/O Pin 3
PM3 is a general purpose input or output pin. This pin can be used as SDDATA1 of the SDHC module, IOC2 of TIM_16B8C module, CFINPACK of CFHC module or SCE of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset the PM3 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the TIM_16B8C Block Guide and the SMHC Block Guide for information about pin configurations.
2.5.28 PQ7 / SDAT7 / CFA7 / IOC7 -- Port Q I/O Pins 7
PQ4 is a general purpose input or output pin. This pin can be used as IOC7 of TIM_16B8 module, CFA7 of CFHC module or SDAT7 of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset PQ7 pin is configured as high impedance input. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the TIM_16B8C Block Guide and the SMHC Block Guide for information about pin configurations.
Freescale Semiconductor
71
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.5.29 PQ6 / SDAT6 / CFA6 / SDCLK / IOC6 -- Port Q I/O Pins 6
PQ4 is a general purpose input or output pin. This pin can be used as IOC6 of TIM_16B8 module, SDCLK of SDHC module, CFA6 of CFHC module or SDAT6 of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset PQ6 pin is configured as high impedance input. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the TIM_16B8C Block Guide, the SDHC Block Guide and the SMHC Block Guide for information about pin configurations.
2.5.30 PQ5 / SDAT5 / CFA5 / SDCMD / IOC5 -- Port Q I/O Pins 5
PQ4 is a general purpose input or output pin. This pin can be used as IOC5 of TIM_16B8 module, SDCMD of SDHC module, CFA5 of CFHC module or SDAT5 of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset PQ5 pin is configured as high impedance input. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the TIM_16B8C Block Guide, the SDHC Block Guide and the SMHC Block Guide for information about pin configurations.
2.5.31 PQ4 / SDAT4 / CFA4 / ATADMACK / IOC4 -- Port Q I/O Pins 4
PQ4 is a general purpose input or output pin. This pin can be used as IOC4 of TIM_16B8 module, ATADMACK of ATA5HC module, CFA4 of CFHC module or SDAT4 of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset PQ4 pin is configured as high impedance input. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the TIM_16B8C Block Guide, the ATA5HC Block Guide and the SMHC Block Guide for information about pin configurations.
2.5.32 PQ3 / SDAT3 / CFIORD / ATAIORD -- Port Q I/O Pins 3
PQ3 is a general purpose input or output pin. This pin can be used as ATAIORD of ATA5HC module, CFIORD of CFHC module or SDAT3 of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset PQ3 pin is configured as high impedance input. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the SMHC Block Guide for information about pin configurations.
2.5.33 PQ[2:0] / SDAT[2:0] / CFA[2:0] / ATADA[2:0]-- Port Q I/O Pins [2:0]
PQ[2:0] are general purpose input or output pins. This pin can be used as ATADA[2:0] of ATA5HC module, CFA[2:0] of CFHC module or SDAT[2:0] of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset PQ[2:0] pins are configured as high impedance input pins. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the ATA5HC Block Guide and the SMHC Block Guide for information about pin configurations.
72
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.5.34 PS7 / CFRDY(CFIREQ) / ATAINTQ / MSSDIO -- Port S I/O Pin 7
PS7 is a general purpose input or output pin. This pin can be configured as MSSDIO signal of the MSHC module; ATAINTQ signal of the ATA5HC module or the CFRDY/CFIREQ signal of the CFHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset the PS7 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the MSHC Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
2.5.35 PS6 / CFWE / ATADMARQ / MSCLK -- Port S I/O Pin 6
PS6 is a general purpose input or output pin. This pin can be configured as MSCLK signal of the MSHC module; ATADMARQ signal of the ATA5HC module or the CFWE signal of the CFHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset the PS6 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide, the MSHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
2.5.36 PS5 / TXD -- Port S I/O Pin 5
PS5 is a general purpose input or output pin. It can also be configured as the TXD pin when the SCI module. While in reset and immediately out of reset the PS5 pin is configured as a high impedance input pin. Consult the Serial Communication Interface (SCI) Block Guide for more information.
2.5.37 PS4 / RXD -- Port S I/O Pin 4
PS4 is a general purpose input or output pin. It can also be configured as the RXD pin when the SCI module. While in reset and immediately out of reset the PS4 pin is configured as a high impedance input pin. Consult the Serial Communication Interface (SCI) Block Guide for more information.
2.5.38 PT1 / IOC1 / SDDATA3 / SWE / CFOE -- Port T I/O Pin 1
PT1 is a general purpose input or output pin. This pin can be configured as IOC1 of TIM_16B8 module, SDDATA3 signal of the SDHC module; SWE signal of the SMHC module or the CFOE signal of the CFHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset the PT1 pin is configured as a high impedance input. Consult the SDHC Block Guide, SMHC Block Guide, CFHC Block Guide, Port Integration Module (PIM) PIM_9UF32 Block Guide and the TIM_16B8C Block Guide for information about pin configurations.
2.5.39 PT0 / IOC0 / SDDATA0 / SRE / CFREG -- Port T I/O Pin 0
PT0 is a general purpose input or output pin. This pin can be used as CFREG of CFHC module, IOC0 of TIM_16B8 module, SDDATA0 of SDHC module or SRE of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset the PT0 pin is configured as a high impedance input. Consult the SDHC Block Guide, SMHC Block Guide, CFHC Block Guide, Port
Freescale Semiconductor
73
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Integration Module (PIM) PIM_9UF32 Block Guide and the TIM_16B8C Block Guide for information about pin configurations.
2.5.40 PU0 / CFWAIT / ATAIORDY / SCD -- Port U I/O Pin 0
PU0 is a general purpose input or output pin. This pin can be used as CFWAIT of CFHC module, ATAIORDY of ATA5HC module or SCD of SMHC module. Refer to Table 2-2 for module routing information. While in reset and immediately out of reset the PU0 pin is configured as a high impedance input pin. Consult the Port Integration Module (PIM) PIM_9UF32 Block Guide, the CFHC Block Guide and the ATA5HC Block Guide for information about pin configurations.
2.6 Power Supply Pins
MC9S12UF32 power and ground pins are described below. Table 2-5 MC9S12UF32 Power and Ground Connection Summary
Mnemonic
VDDR VSSR VDD VDDX VSSX VDD3X VSS3X VDDA VSSA VSSA1
Nominal Voltage
5.0V 0V 2.5V 3.3/5.0 V 0V 3.3/5.0 V 0V 3.3V 0V 0V
Description
External power and ground, supply to internal voltage regulator and supply to pin drivers for Port E, PWROFF3V, PWROFF5V, REF3V, VREGEN, BKDG and RESET. Internal digital core power generated by internal regulator. External power and ground, supply to pin drivers for Ports A, B, R, S and U. External power and ground, supply to pin drivers for Port J, M, P, Q and T.
Internal power and ground for USB PHY generated by internal regulator.
NOTE:
All VSS pins must be connected together in the application. Because fast signal transitions place high, short-duration current demands on the power supply, use bypass capacitors with high-frequency characteristics and place them as close to the MCU as possible. Bypass requirements depend on MCU pin load.
2.6.1 VDDR, VSSR - Power & Ground Pins for I/O Drivers & for Internal Voltage Regulator
External power and ground for I/O drivers of Port E, PWROFF3V, PWROFF5V, BKGD, TEST, RESET, VREGEN, and REG3V. Also input to the internal voltage regulator.
74
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2.6.2 VDD - Core Power Pin
This 2.5v supply is derived from the internal voltage regulator. There is no static load on this pin allowed. The internal voltage regulator is turned off if VREGEN is tied to ground. In that case, VDD must be supplied externally with 2.5v. NOTE: No load allowed except for bypass capacitors.
2.6.3 VDDX, VSSX - Power & Ground Pins for I/O Drivers
External power and ground for I/O drivers of Ports B, A, U, S and R.
2.6.4 VDD3X, VSS3X - Power & Ground Pins for I/O Drivers
External power and ground for I/O drivers of Ports Q, P, M, J and T.
2.6.5 VDDA, VSSA, VSSA1 - USB PHY Power Pins
VDDA is 3.3v output for connecting USB pull-up resistor (RPU). NOTE: No load allowed except for bypass capacitors and RPU.
VSSA and VSSA1 are ground of USB PHY, which generates the 480bps USB signals. VSSA should also be used for ground of Pierce oscillator crystal.
Freescale Semiconductor
75
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Figure 2-3 Supply rails for various I/O pins of 100-pin package
PE5 PE4 PE3 PE2 PE0 RREF VSSA1 DMH DMF DPH DPF VDDA RPU VSSA EXTAL XTAL
1. Oscillator pads EXTAL and XTAL are supplied by internal voltage regulator directly. 2. TEST pin is for factory test only. For normal use, it can be left unconnected.
PE6 PE7 BKGD (N/C)2 TEST RESET VSSR VDDR REF3V PQ0 PQ1 PQ2 PQ3 PQ4 PQ5 PQ6 PQ7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
Figure 2-4 Supply rails for various I/O pins of 64-pin package
76 Freescale Semiconductor
VDD3X VSS3X PM3 PM4 PJ0 PJ1 PJ2 PT0 PT1 PB0 PB1 PB2 PB3 PB4 PB5 PB6
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
PP5 PP6 PP7 VDD3X VSS3X PM0 PM1 PM2 PM3 PM4 PM5 PJ0 PJ1 PJ2 PT0 PT1 PT2 PT3 PB0 PB1 PB2 PB3 PB4 PB5 PB6
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 VDDR VDDA *1
PE6 PE7 PWROFF3V PWROFF5V BKGD (N/C)2 TEST RESET VDD VSSR VDDR VREGEN REF3V PQ0 PQ1 PQ2 PQ3 PQ4 PQ5 PQ6 PQ7 PP0 PP1 PP2 PP3 PP4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 VDDR VDDA *1
PE5 PE4 PE3 PE2 PE1 PE0 RREF VSSA1 DMH DMF DPH DPF VDDA RPU VSSA EXTAL XTAL PR7 PR6 PR5 PR4 PR3 PR2 PR1 PR0
MC9S12UF32
100LQFP
VDD3X
VDDX
75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51
PS7 PS6 PS5 PS4 PS3 PS2 PS1 PS0 PU0 PU1 PU2 PU3 PU4 PU5 VDDX VSSX PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0 PB7
MC9S12UF32
64 LQFP
VDD3X
VDDX
48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33
PS7 PS6 PS5 PS4 PU0 VDDX VSSX PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0 PB7
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Section 3 System Clock Description
The clock is generated by the USB20PHY analog sub-block in the USB20D6E2F module.The Clock and Reset Generator distributes the internal clock signals for the core and all peripheral modules. Figure 3-1shows the clock connections from the CRG_U to all modules. Consult the CRG_U Block Guide for details on clock generation. .
core clock EXTAL S12_CORE Flash OSC SMRAM3P5K2E PIM SCI TIM EXTAL clock SMHC IP bus clock IP Bus Interface SDHC MSHC CFHC ATA5HC IQUE UTMI Clock* IQUE Clock* oscillator clock 30MHz Clock for UTMI Interface 60MHz Clock
USB2.0 Digital
12MHz
XTAL
CRG_U
USB2.0 PHY
Figure 3-1 Clock Connections1
NOTES: 1. UTMI clock and IQUE clock are fixed 30MHz and 60MHz respectively only when PHY (instead of OSC) is selected as the clock source. See CRG_U Block Guide for details.
Freescale Semiconductor
77
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Section 4 Modes of Operation
4.1 Overview
Eight possible modes determine the operating configuration of the MC9S12UF32. Each mode has an associated default memory map and external bus configuration. In addition each operating mode, with the exception of Special Peripheral Mode (SPM), can be configured for low power operation by entering one of two low power sub-modes. The device is also equipped with security features which restrict certain modes of operation and limit access to internal memory. More detailed information on the various operating modes, and their configurations can be found in the HCS12 V1.5 Core User Guide.
4.2 Modes of Operation
There are two basic categories of operating modes: 1. Normal modes: Some registers and bits are protected against accidental changes. 2. Special modes: Allow greater access to protected control registers and bits for special purposes such as testing. In all Normal and Special modes a system development and debug feature, background debug mode (BDM), is available. In special single-chip mode, BDM is active immediately after reset. The operating mode out of reset is determined by the states of the MODC, MODB, and MODA pins during reset (Table 4-1). The MODC, MODB, and MODA bits in the MODE register show the current operating mode and provide limited mode switching during operation. The states of the MODC, MODB, and MODA pins are latched into these bits on the rising edge of the reset signal. When resetting into all modes except SPM, the ESTR bit in the EBICTL register is set to one, configuring the ECLK as a bus control signal, to assure that the reset vector can be fetched even if it located in an external slow memory device. Table 4-1 Mode Selection
BKGD = MODC
0 0 0 0 1 1 1 1
PE6 = MODB
0 0 1 1 0 0 1 1
PE5 = MODA
0 1 0 1 0 1 0 1
Mode Description
Special Single Chip, BDM allowed and ACTIVE. BDM is allowed in all other modes but a serial command is required to make BDM active. Emulation Expanded Narrow, BDM allowed Special Test (Expanded Wide), BDM allowed Emulation Expanded Wide, BDM allowed Normal Single Chip, BDM allowed Normal Expanded Narrow, BDM allowed Special Peripheral; BDM allowed but bus operations would cause bus conflicts (must not be used) Normal Expanded Wide, BDM allowed
The following sections discuss the default bus setup and describe which aspects of the bus can be changed after reset on a per mode basis.
78
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
4.2.1 Normal Operating Modes
These modes provide three operating configurations: Normal Single-Chip Mode, Normal Expanded Wide Mode, and Normal Expanded Narrow Mode. Background debug (BDM) is available in all three normal modes, but must first be enabled for some operations by means of a BDM background command, then activated. 4.2.1.1 Normal Single-Chip Mode There is no external expansion bus in this mode. Ports A and B are general purpose I/O pins, initially configured as high-impedance inputs with their internal pull-ups disabled. Port pins PE[7:2] are general purpose I/O pins, and port pins PE[1:0] are available as general purpose input only pins. All of Port E pins are initially configured as high-impedance inputs with internal pull-ups enabled. The pins associated with Port E bits 6, 5, 3, and 2 cannot be configured for their alternate functions IPIPE1, IPIPE0, LSTRB, and R/W while the MCU is in normal single chip mode. In normal single chip mode, the associated control bits PIPOE, LSTRE, and RDWE are reset to zero, and writing a one to them in this mode does not change the operation of the associated Port E pins. In normal single chip mode, the MODE register is writable one time. This allows a user program to change the bus mode to special single chip or normal expanded wide or normal expanded narrow modes and/or turn on visibility of internal accesses. Port E, bit 4 can be configured for a free-running ECLK output by clearing NECLK=0. Typically the only use for an ECLK output while the MCU is in normal single chip mode would be to get a constant speed clock for use in the external application system. 4.2.1.2 Normal Expanded Wide Mode In normal expanded wide mode, Ports A and B are configured as a 16-bit multiplexed address and data bus and Port PE4 is configured as the ECLK output signal. These signals allow external memory and peripheral devices to be interfaced to the MCU. Port E pins other than PE4/ECLK are configured as general purpose I/O pins (initially high-impedance inputs with internal pull-up resistors enabled). Control bits PIPOE, NECLK, LSTRE, and RDWE in the PEAR register can be used to configure Port E pins to act as bus control outputs instead of general purpose I/O pins. It is possible to enable the pipe status signals on Port E bits 6 and 5 by setting the PIPOE bit in the PEAR register, but it would be unusual to do so in this mode. Development systems where pipe status signals are monitored would typically use the special variation of this mode. The Port E bit 2 pin can be re-configured as the R/W bus control signal by writing "1" to the RDWE bit in the PEAR register. If the expanded system includes external devices that can be written, such as RAM, the RDWE bit would need to be set before any attempt to write to an external location. If there are no writable resources in the external system, PE2 can be left as a general purpose I/O pin.
Freescale Semiconductor
79
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
The Port E bit 3 pin can be re-configured as the LSTRB bus control signal by writing "1" to the LSTRE bit in the PEAR register. The default condition of this pin is a general purpose input because the LSTRB function is not needed in all expanded wide applications. The Port E bit 4 pin is initially configured as ECLK output with stretch. The ECLK output function depends upon the settings of the NECLK bit in the PEAR register, the IVIS bit in the MODE register and the ESTR bit in the EBICTL register. The ECLK is available for use in external select decode logic or as a constant speed clock for use in the external application system. 4.2.1.3 Normal Expanded Narrow Mode The normal expanded narrow mode is used for lower cost production systems that use 8-bit wide external EPROMs or RAMs. Such systems take extra bus cycles to access 16-bit locations but this may be preferred over the extra cost of additional external memory devices. Ports A and B are configured as a 16-bit address bus and Port A is multiplexed with data. Internal visibility is not available in this mode because the internal cycles would need to be split into two 8-bit cycles. Since the PEAR register can only be written one time in this mode, use care to set all bits to the desired states during the single allowed write. The PE3/LSTRB pin is always a general purpose I/O pin in normal expanded narrow mode. Although it is possible to write the LSTRE bit in the PEAR register to "1" in this mode, the state of LSTRE is overridden and Port E bit 3 cannot be re-configured as the LSTRB output. It is possible to enable the pipe status signals on Port E bits 6 and 5 by setting the PIPOE bit in the PEAR register, but it would be unusual to do so in this mode. LSTRB would also be needed to fully understand system activity. Development systems where pipe status signals are monitored would typically use special expanded wide mode or occasionally special expanded narrow mode. The PE4/ECLK pin is initially configured as ECLK output with stretch. The ECLK output function depends upon the settings of the NECLK bit in the PEAR register, the IVIS bit in the MODE register and the ESTR bit in the EBICTL register. In normal expanded narrow mode, the ECLK is available for use in external select decode logic or as a constant speed clock for use in the external application system. The PE2/R/W pin is initially configured as a general purpose input with a pull-up but this pin can be re-configured as the R/W bus control signal by writing "1" to the RDWE bit in the PEAR register. If the expanded narrow system includes external devices that can be written such as RAM, the RDWE bit would need to be set before any attempt to write to an external location. If there are no writable resources in the external system, PE2 can be left as a general purpose I/O pin. 4.2.1.4 Emulation Expanded Wide Mode In expanded wide modes, Ports A and B are configured as a 16-bit multiplexed address and data bus and Port E provides bus control and status signals. These signals allow external memory and peripheral devices to be interfaced to the MCU. These signals can also be used by a logic analyzer to monitor the progress of application programs. The bus control related pins in Port E (PE7/NOACC, PE6/MODB/IPIPE1, PE5/MODA/IPIPE0, PE4/ECLK, PE3/LSTRB/TAGLO, and PE2/R/W) are all configured to serve their bus control output
80
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
functions rather than general purpose I/O. Writes to the bus control enable bits in the PEAR register in special mode are restricted. 4.2.1.5 Emulation Expanded Narrow Mode Expanded narrow modes are intended to allow connection of single 8-bit external memory devices for lower cost systems that do not need the performance of a full 16-bit external data bus. Accesses to internal resources that have been mapped external (i.e. PORTA, PORTB, DDRA, DDRB, PORTE, DDRE, PEAR, PUCR, RDRIV) will be accessed with a 16-bit data bus on Ports A and B. Accesses of 16-bit external words to addresses which are normally mapped external will be broken into two separate 8-bit accesses using Port A as an 8-bit data bus. Internal operations continue to use full 16-bit data paths. They are only visible externally as 16-bit information if the IVIS bit is set to one in the MODE register. Ports A and B are configured as multiplexed address and data output ports. During external accesses, address A15, data D15 and D7 are associated with PA7, address A0 is associated with PB0 and data D8 and D0 are associated with PA0. During internal visible accesses and accesses to internal resources that have been mapped external, address A15 and data D15 is associated with PA7 and address A0 and data D0 is associated with PB0. The bus control related pins in Port E (PE7/NOACC, PE6/MODB/IPIPE1, PE5/MODA/IPIPE0, PE4/ECLK, PE3/LSTRB/TAGLO, and PE2/R/W) are all configured to serve their bus control output functions rather than general purpose I/O. Notice that writes to the bus control enable bits in the PEAR register in special mode are restricted. The main difference between special modes and normal modes is that some of the bus control and system control signals cannot be written in special modes.
4.2.2 Special Operating Modes
There are a total of three special operating modes: Special Single-Chip, Special Test, and Special Peripheral modes. These operating modes are commonly used in factory testing and system development. Two of the special operating modes correspond to normal operating modes. 4.2.2.1 Special Single-Chip Mode When the MCU is reset in this mode, the background debug mode is enabled and active. The MCU does not fetch the reset vector and execute application code as it would in other modes. Instead, the active background mode is in control of CPU execution and BDM firmware is waiting for additional serial commands through the BKGD pin. When a serial command instructs the MCU to return to normal execution, the system will be configured as described below unless the reset states of internal control registers have been changed through background commands after the MCU was reset. There is no external expansion bus after reset in this mode. Ports A and B are initially simple bidirectional I/O pins that are configured as high-impedance inputs with internal pull-ups disabled; however, writing to the mode select bits in the MODE register (which is allowed in special modes) can change this after reset. All of the Port E pins (except PE4/ECLK) are initially configured as general purpose high-impedance inputs with pull-ups enabled. PE4/ECLK is configured as the ECLK output in this mode.
Freescale Semiconductor
81
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
The pins associated with Port E bits 6, 5, 3, and 2 cannot be configured for their alternate functions IPIPE1, IPIPE0, LSTRB, and R/W while the MCU is in single chip modes In single chip modes, the associated control bits PIPOE, LSTRE and RDWE are reset to zero. Writing the opposite value into these bits in single chip mode does not change the operation of the associated Port E pins. Port E, bit 4 can be configured for a free-running ECLK output by clearing NECLK=0. Typically the only use for an ECLK output while the MCU is in single chip modes would be to get a constant speed clock for use in the external application system. 4.2.2.2 Special Test Mode In expanded wide modes, Ports A and B are configured as a 16-bit multiplexed address and data bus and Port E provides bus control and status signals. In special test mode, the write protection of many control bits is lifted so that they can be thoroughly tested without needing to go through reset. 4.2.2.3 Special Peripheral Mode This mode is intended for Motorola factory testing of the MCU. In this mode, the CPU is inactive and an external (tester) bus master drives address, data and bus control signals in through Ports A, B and E. In effect, the whole MCU acts as if it was a peripheral under control of an external CPU. This allows faster testing of on-chip memory and peripherals than previous testing methods. Since the mode control register is not accessible in peripheral mode, the only way to change to another mode is to reset the MCU into a different mode. Background debugging should not be used while the MCU is in special peripheral mode as internal bus conflicts between BDM and the external master can cause improper operation of both functions.
4.3 Internal Visibility
Internal visibility is available when the MCU is operating in expanded wide modes or special test modes. It is not available in single-chip, peripheral or normal expanded narrow modes. Internal visibility is enabled by setting the IVIS bit in the MODE register. If an internal access is made while the ECLK, R/W, and LSTRB are configured as bus control outputs and internal visibility is off (IVIS=0), ECLK will remain low for the cycle, R/W will remain high, and address, data and the LSTRB pins will remain at their previous state. When internal visibility is enabled (IVIS=1), certain internal cycles will be blocked from going external. During cycles when the BDM is selected, R/W will remain high, data will maintain its previous state, and address and LSTRB pins will be updated with the internal value. During CPU no access cycles when the BDM is not driving, R/W will remain high, and address, data and the LSTRB pins will remain at their previous state.
4.4 Security
The device will make available a security feature preventing the unauthorized read and write of the memory contents. This feature allows:
82
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
* * *
Protection of the contents of FLASH, Operation in single-chip mode, Operation from external memory with internal FLASH disabled.
The user must be reminded that part of the security must lie with the user's code. An extreme example would be user's code that dumps the contents of the internal program. This code would defeat the purpose of security. At the same time the user may also wish to put a back door in the user's program. An example of this is the user downloads a key through the SCI which allows access to a programming routine that updates parameters stored in FLASH. Please refer to the HCS12 Core User Guide for more information about security.
4.4.1 Securing the Microcontroller
Once the user has programmed the FLASH, the part can be secured by programming the security bits located in the FLASH module. These non-volatile bits will keep the part secured through resetting the part and through powering down the part. The security byte resides in a portion of the Flash array. Check the Flash Block Guide for more details on the security configuration.
4.4.2 Operation of the Secured Microcontroller
4.4.2.1 Normal Single Chip Mode This will be the most common usage of the secured part. Everything will appear the same as if the part was not secured with the exception of BDM operation. The BDM operation will be blocked. 4.4.2.2 Executing from External Memory The user may wish to execute from external space with a secured microcontroller. This is accomplished by resetting directly into expanded mode. The internal FLASH will be disabled. BDM operations will be blocked.
4.4.3 Unsecuring the Microcontroller
There are two methods for unsecuring the Microcontroller. If the contents of the flash are known then the microcontroller can be unsecured using the backdoor key access feature. The other unsecuring method is to fully erase the FLASH. 4.4.3.1 Unsecuring the Microcontroller (backdoor key access) In normal modes, either SINGLE CHIP or EXPANDED, the microcontroller may only be unsecured by using the backdoor key access feature. This requires knowledge of the contents of the backdoor keys, which must be written to the Flash memory space at the appropriate addresses, in the correct order. In addition, in SINGLE CHIP mode the user code stored in the Flash must have a method of receiving the backdoor key from an external stimulus. This external stimulus would typically be through one of the
Freescale Semiconductor
83
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
on-chip serial ports. After the backdoor sequence has been correctly matched, the microcontroller will be unsecured, and all Flash commands will be enabled and the Flash security byte can be programmed to the unsecure state, if desired. Please note that if the system goes through a reset condition prior to successful configuration of unsecured mode the system will reset back into secured mode operation. 4.4.3.2 Unsecuring the Microcontroller (full FLASH erase) In order to unsecure the microcontroller, the internal FLASH must be erased. This can be done through an external program in expanded mode. Once the user has erased the FLASH, the part can be reset into special single chip mode This invokes a program that verifies the erasure of the internal FLASH. Once this program completes, the user can erase and program the FLASH security bits to the unsecured state. This is generally done through the BDM, but the user could also change to expanded mode (by writing the mode bits through the BDM) and jumping to an external program (again through BDM commands). Note that if the part goes through a reset before the security bits are reprogrammed to the unsecure state, the part will be secured again.
4.5 Low Power Modes
There are two low power modes available on the MC9S12UF32: Stop and Wait Please see Table A-8 for device operating characteristics in Stop and Wait modes. Consult the CRG_U Block Guide and the respective Block Guide for information on the module behavior in Stop and Wait Mode.
4.5.1 Stop
Executing the CPU STOP instruction stops all clocks and the oscillator, thus putting the chip in fully static mode. Wake up from this mode can be done via reset or external interrupts.
4.5.2 Wait
This mode is entered by executing the CPU WAI instruction. In this mode, the CPU will not execute instructions. The internal CPU signals (address and data bus) will be fully static. All peripherals stay active. So, for example, data can still be transferred from ATA5HC to USB via IQUE. For further power consumption, the peripherals can individually turn off their local clocks.
4.5.3 Run
Although this is not a low power mode, unused peripheral modules should not be enabled in order to save power.
84
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Section 5 Resets and Interrupts
5.1 Overview
Consult the Exception Processing section of the HCS12 Core User Guide for information on resets and interrupts. Both local masking and CCR masking are included as listed in Table 5-1. System resets can be generated through external control of the RESET pin, through the clock and reset generator module CRG_U. Refer to the CRG_U User Guide for detailed information on reset generation.
5.2 Vectors
5.2.1 Vector Table
Table 5-1 lists interrupt sources and vectors in default order of priority. Table 5-1 Interrupt Vector Locations
Vector Address
$FFFE, $FFFF $FFFC, $FFFD $FFFA, $FFFB $FFF8, $FFF9 $FFF6, $FFF7 $FFF4, $FFF5 $FFF2, $FFF3 $FFF0, $FFF1 $FFEE, $FFEF $FFEC, $FFED $FFEA, $FFEB $FFE8, $FFE9 $FFE6, $FFE7 $FFE4, $FFE5 $FFE2, $FFE3 $FFE0, $FFE1 $FFDE, $FFDF $FFDC, $FFDD $FFDA, $FFDB $FFD8, $FFD9 $FFD6, $FFD7 $FFD4, $FFD5 $FFD2, $FFD3 $FFD0, $FFD1 $FFCE, $FFCF
Interrupt Source
Reset Reserved COP failure reset Unimplemented instruction trap SWI XIRQ IRQ Real Time Interrupt Timer channel 0 Timer channel 1 Timer channel 2 Timer channel 3 Timer channel 4 Timer channel 5 Timer channel 6 Timer channel 7 Timer overflow Pulse accumulator A overflow Pulse accumulator input edge Reserved SCI USB status change USB Setup command related USB set endpoint configuration register request USB Endpoint 0 IN
CCR Mask
None None None None None X-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit
Local Enable
None Reserved COP rate select None None None INTCR (IRQEN) CRGINT (RTIE) TIE (C0I) TIE (C1I) TIE (C2I) TIE (C3I) TIE (C4I) TIE (C5I) TIE (C6I) TIE (C7I) TSCR2 (TOI) PACTL (PAOVI) PACTL (PAI) Reserved SCICR2 (TIE, TCIE, RIE, ILIE) UIMR(USSCIE, URSCIE) UIMR (SETOVRIE, SETUP) UCCSR(SETECRIE) UEPCSR0 (TCIE)
HPRIO Value to Elevate
- - - - - - $F2 $F0 $EE $EC $EA $E8 $E6 $E4 $E2 $E0 $DE $DC $DA $D8 $D6 $D4 $D2 $D0 $CE
Freescale Semiconductor
85
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
$FFCC, $FFCD $FFCA, $FFCB $FFC8, $FFC9 $FFC6, $FFC7 $FFC4, $FFC5 USB Endpoint 0 OUT USB Endpoint 2 USB Endpoint 3 CRG PLL Lock USB Endpoint 4 I-Bit I-Bit I-Bit I-Bit I-Bit UEPCSR1 (TCIE) UEPCSR2 (TCIE) UEPCSR3 (TCIE) PLLCR (LOCKIE) UEPCSR4A (TCIE), UEPCSR4B (SPKTIE, TERRIE) UEPCSR5A (TCIE), UEPCSR5B (SPKTIE, TERRIE) UEPCSR6 (TCIE) UIMR (SOFIE) Reserved Reserved FCTL(CCIE, CBEIE) QC1CR (Q1FIE) QC1CR (Q1EIE) QC1CR (Q1VIE) QC2CR (Q2FIE) QC2CR (Q2EIE) QC2CR (Q2VIE) QC3CR (Q3FIE) QC3CR (Q3EIE) QC3CR (Q3VIE) QC4CR (Q4FIE) QC4CR (Q4EIE) QC4CR (Q4VIE) QC12DCR (DVFIE) QC12DCR (DVEIE) QC12DCR (DVTIE) QC34DCR (DVFIE) QC34DCR (DVEIE) QC34DCR (DVTIE) Reserved Reserved HCFG (IE) CFSCR1 CFSCR1 MSIC (INTE, DTRQIE, DTCMPIE, FAEEN) SDINTREN SMIMR(INTEN) SMIMR(INTEN) Reserved $CC $CA $C8 $C6 $C4
$FFC2, $FFC3 $FFC0, $FFC1 $FFBE, $FFBF $FFBC, $FFBD $FFBA, $FFBB $FFB8, $FFB9 $FFB6, $FFB7 $FFB4, $FFB5 $FFB2, $FFB3 $FFB0, $FFB1 $FFAE, $FFAF $FFAC, $FFAD $FFAA, $FFAB $FFA8, $FFA9 $FFA6, $FFA7 $FFA4, $FFA5 $FFA2, $FFA3 $FFA0, $FFA1 $FF9E, $FF9F $FF9C, $FF9D $FF9A, $FF9B $FF98, $FF99 $FF96, $FF97 $FF94, $FF95 $FF92, $FF93 $FF90, $FF91 $FF8E, $FF8F $FF8C, $FF8D $FF8A, $FF8B $FF88, $FF89 $FF86, $FF87 $FF84, $FF85 $FF82, $FF83 $FF80, $FF81
USB Endpoint 5 USB Endpoint 6 USB Start of Frame Reserved Reserved FLASH IQUE Channel 1 Full IQUE Channel 1 Empty IQUE Channel 1 Valid IQUE Channel 2 Full IQUE Channel 2 Empty IQUE Channel 2 Valid IQUE Channel 3 Full IQUE Channel 3 Empty IQUE Channel 3 Valid IQUE Channel 4 Full IQUE Channel 4 Empty IQUE Channel 4 Valid IQUE Channel 1/2 Double Buffer Full IQUE Channel 1/2 Double Buffer Empty IQUE Channel 1/2 Double Buffer Transfer Complete IQUE Channel 3/4 Double Buffer Full IQUE Channel 3/4 Double Buffer Empty IQUE Channel 3/4 Double Buffer Transfer Complete Reserved Reserved ATA5 Host Controller CF Host Controller (SFT) CF Host Controller (IREQ) MS Host Controller SD Host Controller SM Host Controller Error SM Host Controller Status Reserved
I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit I-Bit -
$C2 $C0 $BE $BC $BA $B8 $B6 $B4 $B2 $B0 $AE $AC $AA $A8 $A6 $A4 $A2 $A0 $9E $9C $9A $98 $96 $94 $92 $90 $8E $8C $8A $88 $86 $84 $82 $80
86
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
5.3 Resets
Resets are a subset of the interrupts featured inTable 5-1. The different sources capable of generating a system reset are summarized in Table 5-2.
5.3.1 Reset Summary Table
Table 5-2 Reset Summary
Reset
Power-on Reset External Reset COP Watchdog Reset
Priority
1 1 2
Source
CRG Module RESET pin CRG Module
Vector
$FFFE, $FFFF $FFFE, $FFFF $FFFA, $FFFB
5.3.2 Effects of Reset
When a reset occurs, MCU registers and control bits are changed to known start-up states. Refer to the respective module Block Guides for register reset states. Refer to the HCS12 Core User Guides for mode dependent pin configuration of port A, B and E out of reset. Refer to the PIM Block Guide for reset configurations of all peripheral module ports. Refer to for location of the memories depending on the operating mode after reset. The RAM array is not automatically initialized out of reset.
Freescale Semiconductor
87
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Section 6 HCS12 Core Block Description
6.1 CPU12 Block Description
Consult the CPU12 Reference Manual for information about the Central Processing Unit.When the CPU12 Reference Manual refers to cycles, this is equivalent to Bus Clock periods. So 1 cycle is equivalent to 1 Bus Clock period.
6.2 HCS12 Background Debug Module (BDM) Block Description
Consult the HCS12 BDM Block Guide for information about the Background Debug Module.When the BDM Block Guide refers to alternate clock, this is equivalent to Oscillator Clock.
6.3 HCS12 Breakpoint (BKP) Block Description
Consult the HCS12 BKP Block Guide for information about the Breakpoint module.
6.4 HCS12 Interrupt (INT) Block Description
Consult the HCS12 INT Block Guide for information about the Interrupt module.
6.5 HCS12 Multiplexed External Bus Interface (MEBI) Block Description
Consult the HCS12 MEBI Block Guide for information about the Multiplexed External Bus Interface module.
6.6 HCS12 Module Mapping Control (MMC) Block Description
Consult the HCS12 MMC Block Guide for information about the Module Mapping Control module.
Section 7 ATA5 Host Controller (ATA5HC) Block Description
Consult the ATA5HC Block Guide for information about the ATA5 host controller module.
88
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
7.1 Device-specific information
The ATA5HC is part of the IQUE bus domain. The register spaces for the ATA5HC is located at addresses $01C0-$01FF.
Section 8 Compact Flash Host Controller (CFHC) Block Description
Consult the CFHC Block Guide for information about the Compact Flash host controller module.
8.1 Device-specific information
The CFHC is part of the IQUE bus domain. The register spaces for the CFHC is located at addresses $0280-$029F. The module inputs CD1, CD2, CVCC, SPKR, STSCHG, VS1, VS2 and the module output CRESET are not used in MC9S12UF32 (i.e. not connected to chip I/O pins) and are internally tied to constant values. User can use GPIO pins for these CF card interface if necessary.
Section 9 Clock Reset Generator (CRG_U) Block Description
Consult the CRG_U Block Guide for information about the Clock and Reset Generator module.
9.1 Device-specific information
The CRG_U is part of the IPBus domain. The register space for the CRG_U is located at addresses $0034-$003F.
Section 10 Flash EEPROM 32K (FTS32K) Block Description
Consult the FTS32K Block Guide for information about the 32K Flash EEPROM module.
Freescale Semiconductor
89
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
10.1 Device-specific information
The FTS32K is part of the HCS12 Bus domain. The register spaces for the FTS32K is located at addresses $0100-$010F. The memory spaces for the FTS32K is located at addresses $8000-$FFFF upon reset. Addresses $4000-$7FFF also map to the same flash array at $8000-$BFFF.
Section 11 Integrated Queue Controller (IQUE) Block Description
Consult the IQUE Block Guide for information about the Integrated Queue Controller module.
11.1 Device-specific information
The IQUE is part of the IQUE Bus domain, with the QRAM interface in HCS12 Bus domain. The register spaces for the IQUE is located at addresses $0200-$023F. The memory spaces for the IQUE is located at addresses $0000-$07FF ($0600-$07FF is reserved) upon reset and is mappable to any 2k-byte boundary. The Channel Request Mapping for the IQUE module on the UF32 is shown in Table 11-1. Table 11-1 Queue Channel n Request Mapping
QnREQ
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011
Peripheral Function
USB20D6E2F USB20D6E2F ATA5HC ATA5HC CFHC CFHC MSHC MSHC SDHC SDHC SMHC SMHC
Direction (Rx/Tx)
Rx Tx Rx Tx Rx Tx Rx Tx Rx Tx Rx Tx
90
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Section 12 Memorystick Host Controller (MSHC) Block Description
Consult the MSHC Block Guide for information about the Memorystick host controller module.
12.1 Device-specific information
The MSHC is part of the IQUE bus domain. The register spaces for the MSHC is located at addresses $02A0-$02AF.
Section 13 Oscillator (OSC) Block Description
Consult the OSC Block Guide for information about the Oscillator module.
13.1 Device-specific information
The power of the OSC module, XTAL and EXTAL pins are supplied directly by internal voltage regulator (instead of VDDPLL/VSSPLL in the OSC Block Guide). The ground is connected to VSSA. Colpitts oscillator and clock monitor of the OSC module are not available in this chip. Only Pierce oscillator/external clock circuitry is allowed. The XCLKS input of the OSC module is tied internally. Figure 13-1 Pierce Oscillator Connections
EXTAL
C1
MCU
XTAL
RB
12MHz crystal or ceramic resonator C2
VSSA
Section 14 Port Integration Module (PIM) Block Description
Consult the PIM_9UF32 Block Guide for information about the Port Integration Module.
Freescale Semiconductor
91
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
14.1 Device-specific information
The PIM is part of the IPBus domain. The MODRR register within the PIM allows for pin mapping for the 100LQFP package and for the 64 LQFP package.
Section 15 Serial Communication Interface (SCI) Block Description
Consult the SCI Block Guide for information about the Serial Communication Interface module.
15.1 Device-specific information
The SCI is part of the IPBus domain. The register spaces for the timer is located at addresses $00C8-$00CF.
Section 16 Secured Digital Host Controller (SDHC) Block Description
Consult the SDHC Block Guide for information about the Secured Digital host controller module.
16.1 Device-specific information
The SDHC is part of the IQUE bus domain. The register spaces for the SDHC is located at addresses $02C0-$02DF.
Section 17 Smartmedia Host Controller (SMHC) Block Description
Consult the SMHC Block Guide for information about the Smartmedia host controller module.
92
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
17.1 Device-specific information
The SMHC is part of the IQUE bus domain. The register spaces for the SMHC is located at addresses $02B0-$02BF.
Section 18 Smartmedia RAM (SMRAM) Block Description
Consult the SMRAM Block Guide for information about the Smartmedia RAM module.
18.1 Device-specific information
The SMRAM is part of the HCS12 Bus domain. The register space for the SMRAM is located at addresses $011C-$011F. The memory space for the SMRAM is located at addresses $0800-$1FFF upon reset and is mappable to any 8k-byte boundary.
Section 19 Timer (TIM) Block Description
Consult the TIM_16B8C Block Guide for information about the Timer module.
19.1 Device-specific information
The TIM is part of the IPBus domain. The register spaces for the timer is located at addresses $0040-$006F.
Section 20 USB2.0 Controller (USB20D6E2F) Block Description
Consult the USB20D6E2F Block Guide for information about the USB2.0 Device Controller module.
20.1 Device-specific information
The USB 2.0 Serial Interface Engine (USB20SIE) is part of the IQUE bus domain.
Freescale Semiconductor
93
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
The USB 2.0 Physical Layer (USB20PHY) is an analog plus high speed digital hard block. The register spaces for the USB20D6E2F is located at addresses $0300-$03FF.
Section 21 Voltage Regulator (VREG_U) Block Description
Consult the VREG_U Block Guide for information about the voltage regulator.
21.1 Device-specific information
The VREG_U is part of the IPBus domain. In 64-pin LQFP package version, the regulator enable pin (VREGEN) is not available externally and is connected internally to VDDR.
Section 22 Schematic and PCB Layout Design Recommendations
This section provides recommendations for schematic and PCB layout design for implementing an USB interface with the MC9S12UF32 microcontroller unit (MCU).
22.1 Schematic Design with the MC9S12UF32 and a USB interface
Figure 22-1 is a schematic of a MC9S12UF32 64-pin package minimum system implementation configured in single-chip mode and utilizing the internal voltage regulator. Same connections can be used with MC9S12UF32 100-pin package. The schematic provides a reference for the following MC9S12UF32 design items: * * * * * Operation mode Clocks Power USB connector (CON1) Background debug connector (CON2)
To configure the MC9S12UF32 in normal single-chip mode, the MODC, MODB, and MODA pins should be configured as documented in the device overview chapter of this book.
94
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
C7 (22pF) EXTAL R3 (510) X1 (12MHz) C8 (22pF)
DA 63 MO
C5 (100nF) R4 (1.5K)
XTAL
DMH DMF DPH DPF
R5 (1M)
EXTAL XTAL
5V R21 (10) DMH DMF DPF DPH REF3V BKGD RESETB 5V R1 (33) R2 (33) R22 (10)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1 VDD 2 D3 D+ 4 GND
MO DB
BKGD TEST RESET VSSR VDDR REF3V
62 61 60 59 RREF 58 VSSA1 57 DMH 56 DMF 55 DPH 54 DPF 53 VDDA 52 RPU 51 VSSA 50 EXTAL 49
CON1 (USB Input)
64
L1
5V
R10 (3.3K) 1 2 3 4 CON2 Q1 MMBF0201N C3(100nF) C1 (4.7uF) C2 (4.7uF) C4 (100nF) BKGD RESETB 5V
MC9S12UF32 64 LQFP
5V
3V3 3V3
REF3V
Figure 22-1 Sample schematic with 64-pin LQFP MC9S12UF32
22.1.1 Power Supply Notes
A 5V power is required. Figure 22-1 shows an example of bus-powered USB device. Special considerations are needed in the choice of capacitors and other power consumptions of the board in order to fulfil the USB current requirement. Alternatively, the board can be designed for self-powered USB device.
22.1.2 Clocking Notes
For proper operation of USB and storage interface of the MC9S12UF32, a 12-MHz crystal is required to provide the clock input to the integrated USB PHY. The crystal must connect to the MC9S12UF32 in a Pierce configuration by the XTAL and EXTAL pins as shown.
Freescale Semiconductor
C6 (5nF)
17 VDD3X 18 VSS3X 19 20 21 22 23 24 25 26 27 28 29 30 31 32
48 47 46 45 44 43 VDDX 42 VSSX 41 40 39 38 37 36 35 34 33
XTAL
3V3
95
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
22.2 PCB Design Recommendation
The PCB must be carefully laid out to ensure proper operations of the voltage regulator as well as the MCU itself. The following rules must be observed: * * * * * * Every supply pair must be decoupled by a ceramic capacitor connected as near as possible to the corresponding pins. Central point of the ground star should be the VSSR pin. Use low ohmic, low inductance connections between VSSR, VSSX, VSS3X, VSSA and VSSA1. Keep traces of VSSA, EXTAL and XTAL as short as possible and occupied board area for C7, C8 and X1 as small as possible. Do not place other signals or supplies underneath area occupied by C7, C8 and X1, and the connection area to the MCU. Central power input should be fed in at the VDDR/VSSR pins. Table 22-1 Recommended decoupling capacitor choice
Component C1 C2 C3 C4 C5 C6 Q1 R1 R2 R21 R22 R3 R4 C7 C8 R5 X1 Purpose Type Value decoupling cap X7R/tantalum >=100nF decoupling cap X7R/tantalum >=100nF decoupling cap ceramic X7R 100nF decoupling cap ceramic X7R 100nF decoupling cap ceramic X7R 100nF decoupling cap choice of C6 cap depends on the type of NMOS transistor NMOS transistor DMF resistor DPF resistor impedance matching resistors depend on board design DMH resistor DMF resistor RREF resistor See Voltage Regulator Appendix RPU resistor OSC load cap OSC load cap See crystal manufacturer's recommendations OSC resistor Quartz
96
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Appendix A Electrical Characteristics
A.1 General
This introduction is intended to give an overview on several common topics like power supply, current injection etc.
A.1.1 Parameter Classification
The electrical parameters shown in this supplement are guaranteed by various methods. To give the customer a better understanding the following classification is used and the parameters are tagged accordingly in the tables where appropriate. NOTE: This classification will be added at a later release of the specification
P: Those parameters are guaranteed during production testing on each individual device. C: Those parameters are achieved by the design characterization by measuring a statistically relevant sample size across process variations. They are regularly verified by production monitors. T: Those parameters are achieved by design characterization on a small sample size from typical devices. All values shown in the typical column are within this category. D: Those parameters are derived mainly from simulations.
A.1.2 Power Supply
The MC9S12UF32 utilizes several pins to supply power to the I/O ports, the oscillator, USB physical layer interface as well as the digital core. The VDDX, VSSX pair supplies the 3.3V/5V I/O pins of ports A, B, R, S, and U. The VDD3X, VSS3X pair supplies the 3.3V/5V I/O pins of ports J, M, Q, P, and T. The VDDR, VSSR pair supplies the internal voltage regulator and 5V only I/O pins. VDD is the output supply pin for the core digital logic, generated by the on-chip regulator. VDDA, VSSA and VSSA1 are output supply pins for the USB physical layer interface I/O pins, supplied by the on-chip regulator. VSS3X and VSSX are connected by anti-parallel diodes for ESD protection. VSS3X and VSSR are connected by anti-parallel diodes for ESD protection. VSSA1 and VSSR are connected by anti-parallel diodes for ESD protection.
NOTE:
IDD3 denotes the currents flowing into VDD3X IDDR denotes the currents flowing into the VDDR IDDX denotes the current flowing into VDDX
Freescale Semiconductor
97
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.1.3 Pins
There are six groups of functional pins. A.1.3.1 3.3V/5.0V I/O pins on VDDX Those I/O pins have a nominal level of 3.3V or 5.0V depending on the voltage supplied by VDDX. This group of pins is comprised of all port I/O pins.The internal structure of all those pins is identical, however some of the functionality may be disabled. A.1.3.2 3.3V/5.0V I/O pins on VDD3X Those I/O pins have a nominal level of 3.3V or 5.0V depending on the voltage supplied by VDD3X. This group of pins is comprised of all port I/O pins.The internal structure of all those pins is identical, however some of the functionality may be disabled. A.1.3.3 5.0V I/O pins Those I/O pins have a nominal level of 5.0V with power rail connecting to VDDR. This group of pins is comprised of all port I/O pins.The internal structure of all those pins is identical, however some of the functionality may be disabled. A.1.3.4 USB physical layer interface analog pins Those I/O pins have specific analog function dedicated to the USB PHY interface and are supplied by internally generated 3.3V VDDA. A.1.3.5 Oscillator The pins EXTAL and XTAL dedicated to the oscillator have a nominal 2.5V level. They are supplied by internal 2.5V regulator. A.1.3.6 TEST This pin is used for production testing only and must be tied to VSS in normal application.
A.1.4 Current Injection
Power supply must maintain regulation within operating specified range during instantaneous and operating maximum current conditions. If positive injection current (Vin > supply rail voltage) is greater than supply current of the pin group, the injection current may flow out of supply rail and could result in external power supply going out of regulation. Insure external supply load will shunt current greater than maximum injection current. This will be the greatest risk when the MCU is not consuming power; e.g. if no system clock is present, or if clock rate is very low which would reduce overall power consumption.
98
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.1.5 Absolute Maximum Ratings
Absolute maximum ratings are stress ratings only. A functional operation under or outside those maxima is not guaranteed. Stress beyond those limits may affect the reliability or cause permanent damage of the device. This device contains circuitry protecting against damage due to high static voltage or electrical fields; however, it is advised that normal precautions be taken to avoid application of any voltages higher than maximum-rated voltages to this high-impedance circuit. Reliability of operation is enhanced if unused inputs are tied to an appropriate logic voltage level (e.g., either VSSX or VDDX).
Table A-1 Absolute Maximum Ratings
Num
1 2 3 4 5 6 7 8 9 10 11 12 13 I/O, Regulator Voltage Digital Logic Supply Voltage2 USB PHY Supply Voltage 2 Voltage difference VSSX to VSSR and VSSA Digital I/O Input Voltage EXTAL, XTAL inputs TEST input Instantaneous Maximum Current Single pin limit for all digital I/O pins 3 Instantaneous Maximum Current Single pin limit for EXTAL, XTAL Instantaneous Maximum Current Single pin limit for TEST4 Operating Temperature Range (packaged) Operating Temperature Range (junction) Storage Temperature Range
Rating
Symbol
VDD51 VDD VDDA VSSX VIN VILV VTEST ID I I
Min
-0.3 -0.3 -0.3 -0.3 -0.3 -0.3 -0.3 -25 -25 -0.25 0 0 - 65
Max
6.5 3.0 4.0 0.3 6.5 3.0 10.0 +25 +25 0 70 105 155
Unit
V V V V V V V mA mA mA C C C
DL
DT
T
A
TJ T
stg
NOTES: 1. This include VDDR, VDDX and VDD3X 2. The device contains an internal voltage regulator to generate the logic and analog supply out of the regulator supply. The absolute maximum ratings apply when the device is powered from an external source. 3. All digital I/O pins are internally clamped to VSSX and VDDX, VSS3X and VDD3X, VSSR and VDDR or VSSA and VDDA. 4. This pin is clamped low to VSSR, but not clamped high. This pin must be tied low in applications.
A.1.6 ESD Protection and Latch-up Immunity
During the device qualification, ESD stresses were performed for the Human Body Model (HBM) and the Machine Model (MM).
Freescale Semiconductor
99
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A device will be defined as a failure if after exposure to ESD pulses, the device no longer meets the device specification. Complete DC parametric and functional testing is performed per the applicable device specification at room temperature followed by hot temperature unless specified otherwise in the device specification. Table A-2 ESD and Latch-up Test Conditions
Model
Series Resistance Storage Capacitance Human Body Number of Pulse per pin positive negative Series Resistance Storage Capacitance Machine Number of Pulse per pin positive negative Minimum input voltage limit Latch-up Maximum input voltage limit 7.5 V
Description
Symbol
R1 C R1 C -
Value
1500 100 1 1 0 200 1 1 -2.5
Unit
Ohm pF
Ohm pF
V
Table A-3 ESD and Latch-Up Protection Characteristics
Num C
1 2 3
Rating
Symbol
VHBM VMM ILAT
Min
2000 200 +100 -100
Max
-
Unit
V V mA
C Human Body Model (HBM) C Machine Model (MM) Latch-up Current at TA = 70C C positive negative
A.1.7 Operating Conditions
This chapter describes the operating conditions of the device. Unless otherwise noted those conditions apply to all the following data.
100
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
NOTE:
Instead of specifying ambient temperature all parameters are specified for the more meaningful silicon junction temperature. For power dissipation calculations refer to Section A.1.8 Power Dissipation and Thermal Characteristics. Table A-4 Operating Conditions
Rating Symbol
VDDR VDDX VDD3x VDD VDDA VSSX fbus T
J
Min
4.25 3.0 3.0 2.25 3.0 -0.1 0.5 0
Typ
5.0 5.0 3.3 2.5 3.3 0 -
Max
5.5 5.5 5.51 2.75 3.6 0.1 30 105
Unit
V V V V V V MHz C
Regulator Supply Voltage VDDX Supply Voltage VDD3X Supply Voltage Digital Logic Supply Voltage2 USB PHY Supply Voltage 2 Voltage Difference VSSX to VSSR and VSSA Bus Frequency Operating Junction Temperature Range
NOTES: 1. REF3V regulator channel cannot be used when VDD3X is not supplied by the regulated supply controlled by REF3V. 2. The device contains an internal voltage regulator to generate the logic and USB PHY supply out of the VDDR. The absolute maximum ratings apply when this regulator is disabled and the device is powered from an external source.
A.1.8 Power Dissipation and Thermal Characteristics
Power dissipation and thermal characteristics are closely related. The user must assure that the maximum operating junction temperature is not exceeded. The average chip-junction temperature (TJ) in C can be obtained from: T J = T A + ( P D * JA ) T J = Junction Temperature, [C ] T A = Ambient Temperature, [C ] P D = Total Chip Power Dissipation, [W] JA = Package Thermal Resistance, [C/W] The total power dissipation can be calculated from: P D = P INT + P IO P INT = Chip Internal Power Dissipation, [W]
Freescale Semiconductor
101
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
P INT = I DDR V DDR IDDR is the current shown in Table A-8 and not the overall current flowing into VDDR, which additionally contains the current flowing into the external loads with output high. 2 P IO = R DSON I IO i i
Which is the sum of all output currents on I/O ports associated with VDD3X, VDDX and VDDR. Table A-5 Thermal Package Characteristics1
Num C
1 2 3 4 T T T T
Rating
Thermal Resistance LQFP100, single layer PCB natural convection Thermal Resistance LQFP100, four layer PCB natural convection Thermal Resistance LQFP64, single layer PCB natural convection. Thermal Resistance LQFP64, four layer PCB natural convection.
Symbol
JA JA JA JA
Min
-
Typ
56 46 64 48
Max
Unit
oC/W oC/W oC/W oC/W
NOTES: 1. The values for thermal resistance are achieved by package simulations
102
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.1.9 I/O Characteristics
This section describes the characteristics of all 3.3V/5V I/O pins. All parameters are not always applicable, e.g. not all pins feature pull up/down resistances.
Freescale Semiconductor
103
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Table A-6 5V I/O Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num C
P Input High Voltage1 1 T Input High Voltage1 P Input Low Voltage1 2 T Input Low Voltage1 3 4 C Input Hysteresis P
Rating
Symbol
VIH VIH VIL VIL V
HYS
Min
0.65*VDD5 VSS5 - 0.3
Typ
250
Max
VDD5 + 0.3 0.35*VDD5 -
Unit
V V V V mV
Input Leakage Current (pins in high ohmic input mode)2 Vin = VDD5 or VSS5
Iin
-2.5
-
2.5
A
5
Output High Voltage (pins in output mode)1 P Partial Drive IOH = -2.5mA Full Drive IOH = -12.5mA Output Low Voltage (pins in output mode) P Partial Drive IOL = +2.5mA Full Drive IOL = +12.5mA Internal Pull Up Device Current, except PM0, P PM[4-2], PU[1-0], PS2 and PS[7-6], tested at VIL Max. Internal Pull Up Device Current, except PM0, P PM[4-2], PU[1-0], PS2 and PS[7-6], tested at VIH Min. Internal Pull Down Device Current, except PQ[0-7], P PP1, PP[5-3], PM0, PM[5-2], PJ[2-0], PU[1-0], PS2 and PS[7-6], tested at V Min.
IH
VOH
VDD5 - 0.8
-
-
V
6
V
OL
-
-
0.8
V
7
IPUL
-
-
-130
A
8
IPUH
-10
-
-
A
9
IPDH
-
-
130
A
10
Internal Pull Down Device Current, except PQ[0-7], P PP1, PP[5-3], PM0, PM[5-2], PJ[2-0], PU[1-0], PS2 and PS[7-6], tested at V Max.
IL
IPDL
10
-
-
A
11 12 13 14 15 16
P P P
Internal Pull Up Device Resistance for PM0, PM[4-2], PJ[2-0], PU[1-0], PS2 and PS[7-6]. Internal Pull Down Device Resistance for PM0, PM[4-2], PU[1-0], PS2 and PS[7-6]. Internal Pull Down Device Resistance for PQ[0-7], PP1, PP[5-3], PJ[2-0]
IPUA IPDA IPDB IPDC Cin IICS IICP
12 14 80 56
15 18 100 70 6
18 22 120 84 2.5 25
k k k k pF mA
P Internal Pull Down Device Resistance for PM5 D Input Capacitance Injection current3 T Single Pin limit Total Device Limit. Sum of all injected currents
-2.5 -25
-
104
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
NOTES: 1. VDD5 refers to 5V supply voltage (VDDR, VDDX, VDD3X). 2. Maximum leakage current occurs at maximum operating temperature. Current decreases by approximately one-half for each 8 C to 12 C in the temperature range from 50 C to 125 C. 3. Refer to Section A.1.4 Current Injection, for more details
Freescale Semiconductor
105
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Table A-7 3.3V I/O Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num C
P Input High Voltage1 1 T Input High Voltage1 P Input Low Voltage1 2 T Input Low Voltage1 3 4 C Input Hysteresis P
Rating
Symbol
V
IH
Min
0.65*VDD3 VSS3 - 0.3
Typ
250
Max
VDD3 + 0.3 0.35*VDD3 -
Unit
V V V V mV
VIH VIL VIL V
HYS
Input Leakage Current (pins in high ohmic input mode)2 Vin = VDD3 or VSS3
Iin
-2.5
-
2.5
A
5
Output High Voltage (pins in output mode)1 P Partial Drive IOH = -0.75 mA Full Drive IOH = - 4.5 mA Output Low Voltage (pins in output mode) P Partial Drive IOL = +0.9 mA Full Drive IOL = +5.5 mA Internal Pull Up Device Current,PM0, PM[4-2], P PJ[2-0], PU[1-0], PS2 and PS[7-6], tested at V Max. IL Internal Pull Up Device Current,PM0, PM[4-2], P PJ[2-0], PU[1-0], PS2 and PS[7-6], tested at V Min.
VOH
VDD3 - 0.4
-
-
V
6
V
OL
-
-
0.4
V
7
IPUL IPUH
-
-
-60
A A
8
-6
-
-
IH
9
Internal Pull Down Device Current,PQ[0-7], PP1, P PP[5-3], PM0, PM[5-2], PJ[2-0], PU[1-0], PS2 and PS[7-6]. tested at V Min.
IH
IPDH
-
-
60
A
10
Internal Pull Down Device Current,PQ[0-7], PP1, P PP[5-3], PM0, PM[5-2], PJ[2-0], PU[1-0], PS2 and PS[7-6], tested at V Max.
IL
IPDL
6
-
-
A
11 12 13 14 15 16
P P P
Internal Pull Up Device Resistance for PM0, PM[4-2], PJ[2-0], PU[1-0], PS2 and PS[7-6]. Internal Pull Down Device Resistance for PM0, PM[4-2], PU[1-0], PS2 and PS[7-6]. Internal Pull Down Device Resistance for PQ[0-7], PP1, PP[5-3], PJ[2-0]
IPUA IPDA IPDB IPDC Cin IICS IICP
12 14 80 56
15 18 100 70 6
18 22 120 84 2.5 25
k k k k pF mA
P Internal Pull Down Device Resistance for PM5 D Input Capacitance Injection current3 T Single Pin limit Total Device Limit. Sum of all injected currents
-2.5 -25
-
NOTES: 1. VDD3 refers to 3.3v supply voltage (VDDX, VDD3X).
106
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
2. Maximum leakage current occurs at maximum operating temperature. Current decreases by approximately one-half for each 8 C to 12 C in the temperature range from 50 C to 125 C. 3. Refer to Section A.1.4 Current Injection, for more details
Freescale Semiconductor
107
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.1.10 Supply Currents
This section describes the current consumption characteristics of the device as well as the conditions for the measurements. A.1.10.1 Measurement Conditions All measurements are without output loads. Unless otherwise noted the currents are measured in single chip mode, internal voltage regulator enabled and at 30MHz bus frequency using a 12MHz oscillator. A.1.10.2 Additional Remarks In expanded modes the currents flowing in the system are highly dependent on the load at the address, data and control signals as well as on the duty cycle of those signals. No generally applicable numbers can be given. A very good estimate is to take the single chip currents and add the currents due to the external loads.
Table A-8 Supply Current Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num
1
C
P P
Rating
Run supply currents Single Chip mode, all modules enabled Single Chip mode, PHY, USB and CPU enabled Wait Supply current
Symbol
Min
Typ
1501 901 1401 1001 1001 2001
Max
250
Unit
mA
IDDR
2
P Stop Current
All modules enabled
IDDW
230
mA
3
C C C
0C 27C 70C
IDDS
300 300 300
A
NOTES: 1. These parameters are achieved by characterization on a small sample size from typical devices.
108
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.2 NVM, Flash
NOTE: Unless otherwise noted the abbreviation NVM (Non Volatile Memory) is used for Flash.
A.2.1 NVM timing
The time base for all NVM program or erase operations is derived from the oscillator. A minimum oscillator frequency fNVMOSC is required for performing program or erase operations. The NVM modules do not have any means to monitor the frequency and will not prevent program or erase operation at frequencies above or below the specified minimum. Attempting to program or erase the NVM modules at a lower frequency a full program or erase transition is not assured. The Flash program and erase operations are timed using a clock derived from the oscillator using the FCLKDIV register. The frequency of this clock must be set within the limits specified as fNVMOP. The minimum program and erase times shown in Table A-9 are calculated for maximum fNVMOP and maximum fbus. The maximum times are calculated for minimum fNVMOP and a fbus of 2MHz.
A.2.1.1 Single Word Programming The programming time for single word programming is dependant on the bus frequency as a well as on the frequency fNVMOP and can be calculated according to the following formula.
1 1 t swpgm = 9 --------------------- + 25 ---------f NVMOP f bus
A.2.1.2 Burst Programming This applies only to the Flash where up to 32 words in a row can be programmed consecutively using burst programming by keeping the command pipeline filled. The time to program a consecutive word can be calculated as:
1 1 t bwpgm = 4 --------------------- + 9 ---------f NVMOP f bus
The time to program a whole row is:
t brpgm = t swpgm + 31 t bwpgm
Burst programming is more than 2 times faster than single word programming. A.2.1.3 Sector Erase Erasing a 512 byte Flash sector takes:
Freescale Semiconductor
109
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
1 t era 4000 --------------------f NVMOP
The setup time can be ignored for this operation. A.2.1.4 Mass Erase Erasing a NVM block takes:
1 t mass 20000 --------------------f NVMOP
The setup time can be ignored for this operation. A.2.1.5 Blank Check The time it takes to perform a blank check on the Flash is dependant on the location of the first non-blank word starting at relative address zero. It takes one bus cycle per word to verify plus a setup of the command.
t check location t cyc + 10 t cyc
Table A-9 NVM Timing Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num C
1 2 3 4 5 6 7 8 9
Rating
Symbol
fNVMOSC fNVMBUS fNVMOP tswpgm tbwpgm tbrpgm tera tmass tcheck
Min
0.5 1 150 46 2 20.4 2 678.4 2 20 4 100 4 11 5
Typ
Max
60 1
Unit
MHz MHz
D External Oscillator Clock D Bus frequency for Programming or Erase Operations D Operating Frequency P Single Word Programming Time D Flash Burst Programming consecutive word D Flash Burst Programming Time for 32 Words P Sector Erase Time P Mass Erase Time D Blank Check Time Flash per block
200 74.5 3 31 3 1035.5 3 26.7 3 133 3 32778 6
kHz s s s ms ms tcyc
NOTES: 1. Restrictions for oscillator in crystal mode apply! 2. Minimum Programming times are achieved under maximum NVM operating frequency fNVMOP and maximum bus frequency fbus. 3. Maximum Erase and Programming times are achieved under particular combinations of fNVMOP and bus frequency fbus. Refer to formulae in Sections Section A.2.1.1 Single Word Programming- Section A.2.1.4 Mass Erase for guidance. 4. Minimum Erase times are achieved under maximum NVM operating frequency fNVMOP. 5. Minimum time, if first word in the array is not blank 6. Maximum time to complete check on an erased block
110
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.2.2 NVM Reliability
The reliability of the NVM blocks is guaranteed by stress test during qualification, constant process monitors and burn-in to screen early life failures. The program/erase cycle count on the sector is incremented every time a sector or mass erase event is executed. NOTE: All values shown in Table A-10 are target values and subject to further extensive characterization.
Table A-10 NVM Reliability Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num C
11 2 C
Rating
Data Retention at an average junction temperature of TJavg = 85oC
Symbol
tNVMRET nFLPE
Min
15 10,000
Typ Max
Unit
Years Cycles
C Flash number of Program/Erase cycles
NOTES: 1. Data Retention at maximum guaranteed device operating temperature up to 1 year.
Freescale Semiconductor
111
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
112
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.3 Voltage Regulator
The on-chip voltage regulator is intended to supply the internal logic, oscillator circuits, and the USB PHY. No external DC load is allowed.
Table A-11 Voltage Regulator Recommended Load Resistances/Capacitances
Rating
Load Capacitance between VDDA and VSSA1 RPU resistor between VDDA and RPU RREF resistor between RREF and VSSA1
Symbol
CLVDDA RRPU RRREF
Min
Typ
100
Max
Unit
nF
1425 504.9
1575 515.1
ohm ohm
Freescale Semiconductor
113
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
114
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.4 Reset, Oscillator and PHY
This section summarizes the electrical characteristics of the various startup scenarios for Oscillator and USB Physical Layer (PHY).
A.4.1 Startup
Table A-12 summarizes several startup characteristics explained in this section. Detailed description of the startup behavior can be found in the Clock and Reset Generator (CRG_U) Block User Guide.
Table A-12 Startup Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num
1 2 3 4 5 6
C
T T D D D D POR release level POR assert level
Rating
Symbol
VPORR VPORA PWRSTL nRST PWIRQ tWRS
Min
Typ
Max
2.07
Unit
V V tosc
0.97 2 192 20 14 196
Reset input pulse width, minimum input time Startup from Reset Interrupt pulse width, IRQ edge-sensitive mode Wait recovery startup time
nosc ns tcyc
A.4.1.1 POR The release level VPORR and the assert level VPORA are derived from the VDD Supply. They are also valid if the device is powered externally. After releasing the POR reset, the oscillator is started. A.4.1.2 SRAM Data Retention Provided an appropriate external reset signal is applied to the MCU, preventing the CPU from executing code when VDD is out of specification limits, the SRAM contents integrity is guaranteed if after the reset the PORF bit in the CRG_U Flags Register has not been set. A.4.1.3 External Reset When external reset is asserted for a time greater than PWRSTL, the CRG_U module generates an internal reset, and the CPU starts fetching the reset vector if there was an oscillation before reset. A.4.1.4 Stop Recovery Out of STOP, the controller can be woken up by an external interrupt.
Freescale Semiconductor
115
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.4.1.5 Wait Recovery The oscillator is not stopped in Wait. The controller can be woken up by internal or external interrupts. After twrs the CPU starts fetching the interrupt vector.
116
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.4.2 Oscillator
The device features an internal Pierce oscillator. The XCLKS signal of the OSC module is tied internally that the Pierce oscillator/external clock mode is always selected. Pierce oscillator/external clock mode allows the input of a square wave.
.
Table A-13 Oscillator Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num C
1 2 3 4 5 6 7 8 9
Rating
Symbol
fOSC iOSC fEXT tEXTL tEXTH tEXTR tEXTF CIN VIH,EXTAL VIH,EXTAL VIL,EXTAL VIL,EXTAL VHYS,EXTAL
Min
0.5 100 0.5 8 8
Typ
12
Max
40
Unit
MHz A
C Crystal oscillator range (Pierce) 1 P Startup Current P External square wave input frequency D External square wave pulse width low D External square wave pulse width high D External square wave rise time D External square wave fall time D Input Capacitance (EXTAL, XTAL pins) P EXTAL Pin Input High Voltage T EXTAL Pin Input High Voltage
60
MHz ns ns
1 1 7 0.75*VDD VDD + 0.3 0.25*VDD VSSA - 0.3 250
ns ns pF V V V V mV
10
P EXTAL Pin Input Low Voltage T EXTAL Pin Input Low Voltage
11
C EXTAL Pin Input Hysteresis
NOTES: 1. Depending on the crystal a damping series resistor might be necessary. Also, the oscillator frequency must be 12MHz in order to have the USB interface and the storage interface to work properly.
A.4.3 USB PHY
The oscillator provides the reference clock for the USB PHY. The 12MHz oscillator clock is used for the USB PHY to generate the 480bps USB traffic, 30MHz USB UTMI interface clock and the 60MHz internal clock. An internal circuitry checks the generated 60MHz clock against the input 12MHz oscillator clock. The generated 60MHz clock is assumed correct (locked) if there are exactly 15 clock cycles in 3 oscillator clock cycles. For the electrical characteristics of the USB PHY, please refer to Chapter 7 "Electrical" of Universal Serial Bus Specification Revision 2.0.
Freescale Semiconductor
117
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
118
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
A.5 External Bus Timing
A timing diagram of the external multiplexed-bus is illustrated in Figure A-1 with the actual timing values shown on table Table A-15. All major bus signals are included in the diagram. While both a data write and data read cycle are shown, only one or the other would occur on a particular bus cycle.
A.5.1 General Muxed Bus Timing
The expanded bus timings are highly dependent on the load conditions. The timing parameters shown assume a balanced load across all outputs.
1, 2 3 ECLK PE4 5 9 Addr/Data (read) PA, PB data 6 15 addr 7 12 Addr/Data (write) PA, PB data addr 8 14 data 13 16 10 data 11 4
17 R/W PE2
18
19
20 LSTRB PE3
21
22
23 NOACC PE7
24
25
26 PIPO0 PIPO1, PE6,5
27
28
29
Figure A-1 General External Bus Timing
Freescale Semiconductor
119
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Table A-15 Expanded Bus Timing Characteristics
Conditions are shown in Table A-4 unless otherwise noted, CLOAD = 50pF
Num C
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 29 20 21 22 23 24 25 26 27 28 29
Rating
Symbol
fo tcyc PWEL PWEH tAD tAV tMAH tAHDS tDHA tDSR tDHR tDDW tDHW tDSW tACCA tACCE tRWD tRWV tRWH tLSD tLSV tLSH tNOD tNOV tNOH tP0D tP0V tP1D tP1V
Min
0 33 16 16
Typ
Max
30.0
Unit
MHz ns ns ns
P Frequency of operation (E-clock) P Cycle time D Pulse width, E low D Pulse width, E high1 D Address delay time D Address valid time to E rise (PWEL-tAD) D Muxed address hold time D Address hold to data valid D Data hold to address D Read data setup time D Read data hold time D Write data delay time D Write data hold time D Write data setup time(1) (PWEH-tDDW) D Address access time(1) (tcyc-tAD-tDSR) D E high access time(1) (PWEH-tDSR) D Read/write delay time D Read/write valid time to E rise (PWEL-tRWD) D Read/write hold time D Low strobe delay time D Low strobe valid time to E rise (PWEL-tLSD) D Low strobe hold time D NOACC strobe delay time D NOACC valid time to E rise (PWEL-tNOD) D NOACC hold time D IPIPO[1:0] delay time D IPIPO[1:0] valid time to E rise (PWEL-tP0D) D IPIPO[1:0] delay time(1) (PWEH-tP1V) D IPIPO[1:0] valid time to E fall
5 11 2 7 2 13 0 7 2 12 15 3 4 12 2 4 12 2 4 12 2 2 11 2 11 25 4
ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns
NOTES: 1. Affected by clock stretch: add N x tcyc where N=0,1,2 or 3, depending on the number of clock stretches.
120
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Freescale Semiconductor
121
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
122
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
Appendix B Package Information
B.1 General
This section provides the physical dimensions of the MC9S12UF32 packages.
Freescale Semiconductor
123
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
B.2 100-pin LQFP Package
Figure B-1 100-pin LQFP mechanical dimensions (case no. 983)
124
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
B.3 64-pin LQFP Package
4X 4X 16 TIPS
0.2 H A-B D
64 1 49
0.2 C A-B D
A2 0.05 (S)
S
48
1 A B E1
3X
2X R R1
0.25
GAGE PLANE
E A1
(L2) L (L) VIEW AA
NOTES: 1. ALL DIMENSIONING AND TOLERANCING PER ANSI Y14.5M, 1982. 2. CONTROLLING DIMENSION: MILLIMETER. 3. DATUM PLANE H IS COINCIDENT WITH THE BOTTOM OF THE LEAD WHERE THE LEAD EXITS THE PLASTIC BODY AT THE BOTTOM OF THE PARTING LINE. 4. DATUMS A, B AND D TO BE DETERMINED AT DATUM PLANE H. 5. DIMENSIONS D AND E TO BE DETERMINED AT SEATING PLANE C. 6. DIMENSIONS D1 AND E1 DO NOT INCLUDE MOLD PROTRUSION. ALLOWABLE PROTRUSION IS 0.25 PER SIDE. DIMENSIONS D1 AND E1 DO INCLUDE MOLD MISMATCH AND ARE DETERMINED AT DATUM PLANE H. 7. DIMENSION b DOES NOT INCLUDE DAMBAR PROTRUSION. THE DAMBAR PROTRUSION SHALL NOT CAUSE THE b DIMENSION TO EXCEED 0.35. MINIMUM SPACE BETWEEN PROTRUSION AND ADJACENT LEAD OR PROTRUSION 0.07. DIM A A1 A2 b b1 c c1 D D1 e E E1 L L1 L2 R1 S 1 2 3 MILLIMETERS MIN MAX -- 1.60 0.05 0.15 1.35 1.45 0.17 0.27 0.17 0.23 0.09 0.20 0.09 0.16 12.00 BSC 10.00 BSC 0.50 BSC 12.00 BSC 10.00 BSC 0.45 0.75 1.00 REF 0.50 REF 0.10 0.20 0.20 REF 7 0 -- 0 12 REF 12 REF
VIEW Y
16 17 32 33
E1/2
E/2
D D1/2 D/2 D1 D
H
A
4X
(2) 0.08 C
C
SEATING PLANE
4X
(3) VIEW AA
BASE METAL
b1 X
X=A, B OR D
c
c1
C L AB AB VIEW Y e/2
60X PLATING
b 0.08
M
e
C A-B D
SECTION AB-AB
ROTATED 90 CLOCKWISE
Figure B-2 64-pin LQFP mechanical dimensions (case no. 840F)
Freescale Semiconductor
125
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
126
Freescale Semiconductor
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
System on a Chip Guide End Sheet
Freescale Semiconductor
127
System on a Chip Guide -- 9S12UF32DGV1/D V01.05
FINAL PAGE OF 128 PAGES
128
Freescale Semiconductor


▲Up To Search▲   

 
Price & Availability of MC9S12UF32

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X